Dagger
Search

golang

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/stuttgart-things/dagger/golang@bb7a073d0fac9aca81514918b23a1b3ee663cda9

Entrypoint

Return Type
Golang
Example
dagger -m github.com/stuttgart-things/dagger/golang@bb7a073d0fac9aca81514918b23a1b3ee663cda9 call \
func (m *myModule) example() *Golang  {
	return dag.
			Golang()
}
@function
def example() -> dag.Golang:
	return (
		dag.golang()
	)
@func()
example(): Golang {
	return dag
		.golang()
}

Types

Golang 🔗

build() 🔗

Builds golang application

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
Example
dagger -m github.com/stuttgart-things/dagger/golang@bb7a073d0fac9aca81514918b23a1b3ee663cda9 call \
 build --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory  {
	return dag.
			Golang().
			Build(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
	return (
		dag.golang()
		.build(src)
	)
@func()
example(src: Directory): Directory {
	return dag
		.golang()
		.build(src)
}