go
A generated module for Go functions
Installation
dagger install github.com/frantjc/daggerverse/go@167461cea8c0a4a834349bb6d7d567e5a6147e20
Entrypoint
Return Type
Go !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
dagger -m github.com/frantjc/daggerverse/go@167461cea8c0a4a834349bb6d7d567e5a6147e20 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 🔗
source() 🔗
Return Type
Directory !
Example
dagger -m github.com/frantjc/daggerverse/go@167461cea8c0a4a834349bb6d7d567e5a6147e20 call \
source
func (m *MyModule) Example() *dagger.Directory {
return dag.
Go().
Source()
}
@function
def example() -> dagger.Directory:
return (
dag.go()
.source()
)
@func()
example(): Directory {
return dag
.go()
.source()
}
build() 🔗
Returns a container that echoes whatever string argument is provided
Return Type
Build !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
pkg | String ! | - | No description provided |
Example
dagger -m github.com/frantjc/daggerverse/go@167461cea8c0a4a834349bb6d7d567e5a6147e20 call \
build --pkg string
func (m *MyModule) Example(pkg string) *dagger.GoBuild {
return dag.
Go().
Build(pkg)
}
@function
def example(pkg: str) -> dagger.GoBuild:
return (
dag.go()
.build(pkg)
)
@func()
example(pkg: string): GoBuild {
return dag
.go()
.build(pkg)
}
Build 🔗
output() 🔗
Return Type
File !
Example
dagger -m github.com/frantjc/daggerverse/go@167461cea8c0a4a834349bb6d7d567e5a6147e20 call \
build --pkg string \
output
func (m *MyModule) Example(pkg string) *dagger.File {
return dag.
Go().
Build(pkg).
Output()
}
@function
def example(pkg: str) -> dagger.File:
return (
dag.go()
.build(pkg)
.output()
)
@func()
example(pkg: string): File {
return dag
.go()
.build(pkg)
.output()
}