Dagger
Search

foo

An example module building a binary and putting it in a container

Installation

dagger install github.com/jpadams/example-go-build-container@5ac0a195693301bcc965d5941d66cb5c9425db67

Entrypoint

Return Type
Foo
Example
func (m *myModule) example() *Foo  {
	return dag.
			Foo()
}
@function
def example() -> dag.Foo:
	return (
		dag.foo()
	)
@func()
example(): Foo {
	return dag
		.foo()
}

Types

Foo 🔗

build() 🔗

Builds go proj from Directory builds Container

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/jpadams/example-go-build-container@5ac0a195693301bcc965d5941d66cb5c9425db67 call \
 build --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			Foo().
			Build(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.foo()
		.build(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.foo()
		.build(source)
}