Run gofmt and fix the Unmarshal test.
This commit is contained in:
		
							parent
							
								
									6da9091d5a
								
							
						
					
					
						commit
						032fe9d27c
					
				
					 2 changed files with 18 additions and 18 deletions
				
			
		
							
								
								
									
										14
									
								
								xmlx_test.go
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								xmlx_test.go
									
										
									
									
									
								
							| 
						 | 
					@ -85,12 +85,12 @@ func TestNodeSearch(t *testing.T) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
type Image struct {
 | 
					type Image struct {
 | 
				
			||||||
	Title       string
 | 
						Title       string `xml:"title"`
 | 
				
			||||||
	Url         string
 | 
						Url         string `xml:"url"`
 | 
				
			||||||
	Link        string
 | 
						Link        string `xml:"link"`
 | 
				
			||||||
	Width       string
 | 
						Description string `xml:"description"`
 | 
				
			||||||
	Height      string
 | 
						Width       int    `xml:"width"`
 | 
				
			||||||
	Description string
 | 
						Height      int    `xml:"height"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func TestUnmarshal(t *testing.T) {
 | 
					func TestUnmarshal(t *testing.T) {
 | 
				
			||||||
| 
						 | 
					@ -108,7 +108,7 @@ func TestUnmarshal(t *testing.T) {
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	img := Image{}
 | 
						var img Image
 | 
				
			||||||
	if err = node.Unmarshal(&img); err != nil {
 | 
						if err = node.Unmarshal(&img); err != nil {
 | 
				
			||||||
		t.Errorf("Unmarshal(): %s", err)
 | 
							t.Errorf("Unmarshal(): %s", err)
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue