Dagger
Search

go

This module has been generated via dagger init and serves as a reference to
basic module structure as you get started with Dagger.

Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.

The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.

Installation

dagger install github.com/dolanor/daggerverse/go@a04fc1230adaefcc063d8dae3fe2db06867fbc0e

Entrypoint

Return Type
Go
Example
dagger -m github.com/dolanor/daggerverse/go@a04fc1230adaefcc063d8dae3fe2db06867fbc0e 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 🔗

container() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
versionString !-No description provided
Example
dagger -m github.com/dolanor/daggerverse/go@a04fc1230adaefcc063d8dae3fe2db06867fbc0e call \
 container --version string
func (m *MyModule) Example(version string) *dagger.Container  {
	return dag.
			Go().
			Container(version)
}
@function
def example(version: str) -> dagger.Container:
	return (
		dag.go()
		.container(version)
	)
@func()
example(version: string): Container {
	return dag
		.go()
		.container(version)
}