1
0
mirror of https://github.com/securego/gosec.git synced 2025-07-13 01:00:25 +02:00

Add an option for Go build tags (#201)

* Add an option for Go build tags

* Update README with a section for Go build tags
This commit is contained in:
cosmincojocar
2018-04-20 01:45:04 +02:00
committed by Grant Murphy
parent 7790709b81
commit 4ae8c95b40
6 changed files with 60 additions and 20 deletions

View File

@ -720,5 +720,13 @@ import (
)
func main() {
cgi.Serve(http.FileServer(http.Dir("/usr/share/doc")))
}`, 1}}
// SampleCode601 - Go build tags
SampleCode601 = []CodeSample{{`
// +build test
package main
func main() {
fmt.Println("no package imported error")
}`, 1}}
)