go
Copyright © 2024 Patrick Hermann patrick.hermann@sva.de
Installation
dagger install github.com/stuttgart-things/dagger/go@583e220f659ead3369d2db280c0a8559c6c099dc
Entrypoint
Return Type
Go !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory | - | No description provided |
Example
dagger -m github.com/stuttgart-things/dagger/go@583e220f659ead3369d2db280c0a8559c6c099dc call \
func (m *myModule) example() *Go {
return dag.
Go()
}
@function
def example() -> dag.Go:
return (
dag.go()
)
@func()
example(): Go {
return dag
.go()
}
Types
Go 🔗
src() 🔗
Return Type
Directory !
Example
dagger -m github.com/stuttgart-things/dagger/go@583e220f659ead3369d2db280c0a8559c6c099dc call \
src
func (m *myModule) example() *Directory {
return dag.
Go().
Src()
}
@function
def example() -> dagger.Directory:
return (
dag.go()
.src()
)
@func()
example(): Directory {
return dag
.go()
.src()
}
devBuild() 🔗
Execute Dev pipeline for sthings-golang application
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
Example
dagger -m github.com/stuttgart-things/dagger/go@583e220f659ead3369d2db280c0a8559c6c099dc call \
dev-build --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory {
return dag.
Go().
DevBuild(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.go()
.dev_build(src)
)
@func()
example(src: Directory): Directory {
return dag
.go()
.devBuild(src)
}
build() 🔗
Returns lines that match a pattern in the files of the provided Directory
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
Example
dagger -m github.com/stuttgart-things/dagger/go@583e220f659ead3369d2db280c0a8559c6c099dc call \
build --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory {
return dag.
Go().
Build(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.go()
.build(src)
)
@func()
example(src: Directory): Directory {
return dag
.go()
.build(src)
}
lint() 🔗
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
Example
dagger -m github.com/stuttgart-things/dagger/go@583e220f659ead3369d2db280c0a8559c6c099dc call \
lint --src DIR_PATH
func (m *myModule) example(src *Directory) *Container {
return dag.
Go().
Lint(src)
}
@function
def example(src: dagger.Directory) -> dagger.Container:
return (
dag.go()
.lint(src)
)
@func()
example(src: Directory): Container {
return dag
.go()
.lint(src)
}