Generated reference for the harmont Go API.
go
Callable singleton for the Go toolchain — access as hm.go.
Call directly to construct a GoToolchain, or use the bare-form
action methods (go.build(), go.test(), etc.) for a one-shot leaf.
go(*, path='.', version='1.23.2', image=None, base=None) -> GoToolchain| Parameter | Type | Default | Description |
|---|---|---|---|
path | str | '.' | Path to the Go module root. |
version | str | '1.23.2' | Go version to install (e.g. "1.23.2"). Must be a |
full MAJOR.MINOR.PATCH version string. | |||
image | str | None | None | Local-mode Docker base image override. |
base | Step | None | None | Existing Step to attach to instead of emitting a fresh |
| apt-base step. |
Returns GoToolchain — A GoToolchain ready for action methods.
go.build()
build(**kw) -> Step| Parameter | Type | Default | Description |
|---|---|---|---|
kw | Any | {} | — |
Returns Step
go.fmt()
fmt(**kw) -> Step| Parameter | Type | Default | Description |
|---|---|---|---|
kw | Any | {} | — |
Returns Step
go.test()
test(**kw) -> Step| Parameter | Type | Default | Description |
|---|---|---|---|
kw | Any | {} | — |
Returns Step
go.vet()
vet(**kw) -> Step| Parameter | Type | Default | Description |
|---|---|---|---|
kw | Any | {} | — |
Returns Step
GoEntry
Callable singleton for the Go toolchain — access as hm.go.
Call directly to construct a GoToolchain, or use the bare-form
action methods (go.build(), go.test(), etc.) for a one-shot leaf.
GoEntry.build()
build(**kw) -> Step| Parameter | Type | Default | Description |
|---|---|---|---|
kw | Any | {} | — |
Returns Step
GoEntry.fmt()
fmt(**kw) -> Step| Parameter | Type | Default | Description |
|---|---|---|---|
kw | Any | {} | — |
Returns Step
GoEntry.test()
test(**kw) -> Step| Parameter | Type | Default | Description |
|---|---|---|---|
kw | Any | {} | — |
Returns Step
GoEntry.vet()
vet(**kw) -> Step| Parameter | Type | Default | Description |
|---|---|---|---|
kw | Any | {} | — |
Returns Step
GoToolchain
Go toolchain install chain — constructed via hm.go().
Holds the go-install step. Action methods (build, test, vet,
fmt) attach leaves to installed.
Fields
| Field | Type | Default |
|---|---|---|
path | str | required |
installed | Step | required |
GoToolchain.build()
build(**kw) -> Step| Parameter | Type | Default | Description |
|---|---|---|---|
kw | Any | {} | — |
Returns Step
GoToolchain.fmt()
fmt(**kw) -> Step| Parameter | Type | Default | Description |
|---|---|---|---|
kw | Any | {} | — |
Returns Step
GoToolchain.test()
test(**kw) -> Step| Parameter | Type | Default | Description |
|---|---|---|---|
kw | Any | {} | — |
Returns Step
GoToolchain.vet()
vet(**kw) -> Step| Parameter | Type | Default | Description |
|---|---|---|---|
kw | Any | {} | — |
Returns Step