Standard library / go/build

go/build.AllowBinary

Deprecated flag; binary-only packages are no longer supported by the Go build command. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
const AllowBinary ImportMode = 2

Working Example

Example Snippetgo
package main
import (  "fmt"  "go/build")
func main() { var m build.ImportMode = build.AllowBinary; fmt.Println(m&build.AllowBinary != 0) }
Go Reference