go
No long description provided.
Installation
dagger install github.com/papercomputeco/daggerverse/go@466b04c11798468eac1d3c900a0534988b90ecbaEntrypoint
Return Type
Go !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory | - | No description provided |
Example
dagger -m github.com/papercomputeco/daggerverse/go@466b04c11798468eac1d3c900a0534988b90ecba call \
func (m *MyModule) Example() *dagger.Go {
return dag.
Go()
}@function
def example() -> dagger.Go:
return (
dag.go()
)@func()
example(): Go {
return dag
.go()
}Types
Go 🔗
checkGoModTidy() 🔗
CheckGoModTidy runs “go mod tidy” and fails if it produces any changes to go.mod or go.sum, indicating that the caller forgot to tidy before committing.
Return Type
String ! Example
dagger -m github.com/papercomputeco/daggerverse/go@466b04c11798468eac1d3c900a0534988b90ecba call \
check-go-mod-tidyfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Go().
CheckGoModTidy(ctx)
}@function
async def example() -> str:
return await (
dag.go()
.check_go_mod_tidy()
)@func()
async example(): Promise<string> {
return dag
.go()
.checkGoModTidy()
}checkGoVet() 🔗
CheckGoVet runs “go vet” against the Source directory and the root Go mod
Return Type
String ! Example
dagger -m github.com/papercomputeco/daggerverse/go@466b04c11798468eac1d3c900a0534988b90ecba call \
check-go-vetfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Go().
CheckGoVet(ctx)
}@function
async def example() -> str:
return await (
dag.go()
.check_go_vet()
)@func()
async example(): Promise<string> {
return dag
.go()
.checkGoVet()
}