Standard library / go/build
go/build.ImportMode
Bitmask controlling package discovery. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
type ImportMode uintWorking Example
Example Snippetgo
package main
import ( "fmt" "go/build")
func main() { var m build.ImportMode = build.FindOnly | build.ImportComment fmt.Println(m&build.FindOnly != 0)}