Difference between revisions of "Go build"
Jump to navigation
Jump to search
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <code>go build</code> | + | {{lowercase}} |
+ | <code>[[go]] build</code> | ||
− | go build your_file.go | + | go build your_file.go |
− | # command-line-arguments | + | # command-line-arguments |
− | ./your_file.go:7:1: syntax error: [[non-declaration statement outside function body]] | + | ./your_file.go:7:1: syntax error: [[non-declaration statement outside function body]] |
+ | |||
+ | [[RUN]] [[CGO_ENABLED]]=0 go build -o /go/bin/app | ||
+ | |||
+ | |||
+ | [[go build -tags]] | ||
== See also == | == See also == | ||
+ | * {{go build}} | ||
* {{go}} | * {{go}} | ||
+ | * {{build}} | ||
+ | |||
+ | [[Category:Go]] |
Latest revision as of 11:31, 5 March 2024
go build
go build your_file.go # command-line-arguments ./your_file.go:7:1: syntax error: non-declaration statement outside function body
RUN CGO_ENABLED=0 go build -o /go/bin/app
go build -tags
See also[edit]
go build
- Go, Gorutine:
go [ mod
|list
|fmt
,for
|build
|get
|version
|env | install | test
]go help
, Go template, Echo go web framework, Go packages, Blank identifier - Build, build automation,
make, cmake
,docker build
,conan build, gradle build
, kaniko, AWS CodeBuild, Bazel, Google Cloud Build, meson, Pants, Scons, Buck2,earthly
Advertising: