go
This module has been generated via dagger init and serves as a reference tobasic 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@8d60f705cb7aa53aa62968b3ac4b49d586c144d0
Entrypoint
Return Type
Go
Example
dagger -m github.com/dolanor/daggerverse/go@8d60f705cb7aa53aa62968b3ac4b49d586c144d0 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
Name | Type | Default Value | Description |
---|---|---|---|
version | String ! | - | No description provided |
Example
dagger -m github.com/dolanor/daggerverse/go@8d60f705cb7aa53aa62968b3ac4b49d586c144d0 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)
}