Changeset View
Changeset View
Standalone View
Standalone View
documentation/content/en/books/porters-handbook/special/chapter.adoc
Show First 20 Lines • Show All 707 Lines • ▼ Show 20 Lines | |||||
=== Building Go Applications | === Building Go Applications | ||||
For ports that use Go, define `USES=go`. Refer to <<uses-go,`go`>> for a list of variables that can be set to control the build process. | For ports that use Go, define `USES=go`. Refer to <<uses-go,`go`>> for a list of variables that can be set to control the build process. | ||||
[[go-ex1]] | [[go-ex1]] | ||||
.Creating a Port for a Go Modules Based Application | .Creating a Port for a Go Modules Based Application | ||||
[example] | [example] | ||||
==== | ==== | ||||
In most cases, it is sufficient to set `GO_MODULE` variable to the value specified by `module` directive in `go.mod`: | In most cases, it is sufficient to set the `GO_MODULE` variable to the value specified by the `module` directive in `go.mod`: | ||||
[.programlisting] | [.programlisting] | ||||
.... | .... | ||||
PORTNAME= hey | PORTNAME= hey | ||||
PORTVERSION= 0.1.4 | PORTVERSION= 0.1.4 | ||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
CATEGORIES= benchmarks | CATEGORIES= benchmarks | ||||
▲ Show 20 Lines • Show All 3,600 Lines • Show Last 20 Lines |