This commit adds full support for bodyclose linter (https://github.com/timakin/bodyclose), which checks if an `http.Body` element is correctly closed after usage. Since it can be used via `go/analysis', I followed the `govet' example as suggested by https://github.com/golangci/golangci-lint/wiki/How-to-add-a-custom-linter. This commit is fully tested, and contains a (flawed) test program which calls `http.Get()' on `https://google.com' and does not closes its corresponding `http.Body'.
		
			
				
	
	
		
			6 lines
		
	
	
		
			120 B
		
	
	
	
		
			Modula-2
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			120 B
		
	
	
	
		
			Modula-2
		
	
	
	
	
	
module github.com/gostaticanalysis/analysisutil
 | 
						|
 | 
						|
go 1.12
 | 
						|
 | 
						|
require golang.org/x/tools v0.0.0-20190311215038-5c2858a9cfe5
 |