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:
committed by
Grant Murphy
parent
7790709b81
commit
4ae8c95b40
@ -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}}
|
||||
)
|
||||
|
Reference in New Issue
Block a user