Dagger
Search

go

A generated module for Go functions

Installation

dagger install github.com/frantjc/daggerverse/go@97db6da59ee40cc8592bdc30d8c3eefbed242b63

Entrypoint

Return Type
Go !
Arguments
NameTypeDefault ValueDescription
srcDirectory -No description provided
Example
dagger -m github.com/frantjc/daggerverse/go@97db6da59ee40cc8592bdc30d8c3eefbed242b63 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@97db6da59ee40cc8592bdc30d8c3eefbed242b63 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
NameTypeDefault ValueDescription
pkgString !-No description provided
Example
dagger -m github.com/frantjc/daggerverse/go@97db6da59ee40cc8592bdc30d8c3eefbed242b63 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@97db6da59ee40cc8592bdc30d8c3eefbed242b63 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()
}