 ac77eaac68
			
		
	
	
		ac77eaac68
		
	
	
	
	
		
			
			ed64e33c8c8bc9a919e2b85a1a08225b5ae59d70. Also add tests for local mode of goimports and do refactoring of tests.
		
			
				
	
	
		
			15 lines
		
	
	
		
			259 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			259 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //args: -Egochecknoglobals
 | |
| package testdata
 | |
| 
 | |
| import (
 | |
| 	"errors"
 | |
| 	"fmt"
 | |
| )
 | |
| 
 | |
| var noGlobalsVar int // ERROR "`noGlobalsVar` is a global variable"
 | |
| var ErrSomeType = errors.New("test that global erorrs aren't warned")
 | |
| 
 | |
| func NoGlobals() {
 | |
| 	fmt.Print(noGlobalsVar)
 | |
| }
 |