Difference between revisions of "Go build"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | <code>go build</code> | + | <code>[[go]] build</code> |
Line 7: | Line 7: | ||
./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}} | * {{build}} | ||
[[Category:Go]] | [[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: