Preprocessed files like .qtpl.go quicktemplate Go files can have //line directives. They map to a source .qtpl file. This commit fixes linting of such files: 1. don't fail on AST cache loading 2. output Go filename not .qtpl or similar Also, here we update golint to the upstream version. Relates: #316, #466, #467, #468
		
			
				
	
	
		
			8 lines
		
	
	
		
			240 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			240 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
All text outside function templates is treated as comments,
 | 
						|
i.e. it is just ignored by quicktemplate compiler (`qtc`). It is for humans.
 | 
						|
 | 
						|
Hello is a simple template function.
 | 
						|
{% func Hello(name string) %}
 | 
						|
	Hello, {%s name %}!
 | 
						|
{% endfunc %}
 |