golang
No long description provided.
Installation
dagger install github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8Entrypoint
Return Type
Golang Example
dagger -m github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8 call \
func (m *MyModule) Example() *dagger.Golang  {
	return dag.
			Golang()
}@function
def example() -> dagger.Golang:
	return (
		dag.golang()
	)@func()
example(): Golang {
	return dag
		.golang()
}Types
Golang 🔗
ctr() 🔗
Return Type
Container ! Example
dagger -m github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8 call \
 ctrfunc (m *MyModule) Example()   {
	return dag.
			Golang().
			Ctr()
}@function
def example() -> :
	return (
		dag.golang()
		.ctr()
	)@func()
example():  {
	return dag
		.golang()
		.ctr()
}exec() 🔗
Exec returns the container with the given command set.
Return Type
Container !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| args | [StringKind ! ] ! | - | No description provided | 
Example
dagger -m github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8 call \
 execfunc (m *MyModule) Example(args )   {
	return dag.
			Golang().
			Exec(args)
}@function
def example(args: ) -> :
	return (
		dag.golang()
		.exec(args)
	)@func()
example(args: ):  {
	return dag
		.golang()
		.exec(args)
}run() 🔗
Run returns the container with the run command executed.
Return Type
Container !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| file | StringKind ! | - | No description provided | 
Example
dagger -m github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8 call \
 runfunc (m *MyModule) Example(file )   {
	return dag.
			Golang().
			Run(file)
}@function
def example(file: ) -> :
	return (
		dag.golang()
		.run(file)
	)@func()
example(file: ):  {
	return dag
		.golang()
		.run(file)
}test() 🔗
Test returns the container with the test executed.
Return Type
Container ! Example
dagger -m github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8 call \
 testfunc (m *MyModule) Example()   {
	return dag.
			Golang().
			Test()
}@function
def example() -> :
	return (
		dag.golang()
		.test()
	)@func()
example():  {
	return dag
		.golang()
		.test()
}build() 🔗
Build returns the container with the built artifact.
Return Type
Container !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| opts | BuildOpts ! | - | No description provided | 
Example
dagger -m github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8 call \
 buildfunc (m *MyModule) Example(opts )   {
	return dag.
			Golang().
			Build(opts)
}@function
def example(opts: ) -> :
	return (
		dag.golang()
		.build(opts)
	)@func()
example(opts: ):  {
	return dag
		.golang()
		.build(opts)
}download() 🔗
Download installs dependencies written in the source directory.
Return Type
Golang ! Example
dagger -m github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8 call \
 downloadfunc (m *MyModule) Example()   {
	return dag.
			Golang().
			Download()
}@function
def example() -> :
	return (
		dag.golang()
		.download()
	)@func()
example():  {
	return dag
		.golang()
		.download()
}get() 🔗
Get returns the container with given packages downloaded.
Return Type
Golang !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| packages | [StringKind ! ] ! | - | No description provided | 
Example
dagger -m github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8 call \
 getfunc (m *MyModule) Example(packages )   {
	return dag.
			Golang().
			Get(packages)
}@function
def example(packages: ) -> :
	return (
		dag.golang()
		.get(packages)
	)@func()
example(packages: ):  {
	return dag
		.golang()
		.get(packages)
}install() 🔗
Install returns the container with given packages installed.
Return Type
Golang !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| packages | [StringKind ! ] ! | - | No description provided | 
Example
dagger -m github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8 call \
 installfunc (m *MyModule) Example(packages )   {
	return dag.
			Golang().
			Install(packages)
}@function
def example(packages: ) -> :
	return (
		dag.golang()
		.install(packages)
	)@func()
example(packages: ):  {
	return dag
		.golang()
		.install(packages)
}withVersion() 🔗
WithVersion returns Golang container with given image version.
The container is configured with cache for packages and build artifacts.
The default entrypoint is set to go.
Return Type
Golang !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| version | StringKind ! | - | No description provided | 
Example
dagger -m github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8 call \
 with-versionfunc (m *MyModule) Example(version )   {
	return dag.
			Golang().
			WithVersion(version)
}@function
def example(version: ) -> :
	return (
		dag.golang()
		.with_version(version)
	)@func()
example(version: ):  {
	return dag
		.golang()
		.withVersion(version)
}withContainer() 🔗
WithContainer returns Golang container set with the given container.
Return Type
Golang !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| ctr | Container ! | - | No description provided | 
Example
dagger -m github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8 call \
 with-containerfunc (m *MyModule) Example(ctr )   {
	return dag.
			Golang().
			WithContainer(ctr)
}@function
def example(ctr: ) -> :
	return (
		dag.golang()
		.with_container(ctr)
	)@func()
example(ctr: ):  {
	return dag
		.golang()
		.withContainer(ctr)
}container() 🔗
Container returns Golang container.
Return Type
Container ! Example
dagger -m github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8 call \
 containerfunc (m *MyModule) Example()   {
	return dag.
			Golang().
			Container()
}@function
def example() -> :
	return (
		dag.golang()
		.container()
	)@func()
example():  {
	return dag
		.golang()
		.container()
}withSource() 🔗
WithSource returns the Golang container with given source mounted to /src.
Return Type
Golang !Arguments
| Name | Type | Default Value | Description | 
|---|---|---|---|
| source | Directory ! | - | No description provided | 
Example
dagger -m github.com/quartz-technology/daggerverse/golang@dc0c27b0f376ba82d9de30855f2173c1d34d85b8 call \
 with-sourcefunc (m *MyModule) Example(source )   {
	return dag.
			Golang().
			WithSource(source)
}@function
def example(source: ) -> :
	return (
		dag.golang()
		.with_source(source)
	)@func()
example(source: ):  {
	return dag
		.golang()
		.withSource(source)
}BuildOpts 🔗
output() 🔗
Return Type
StringKind ! Example
Function GolangBuildOpts.Output is not accessible from the golang moduleFunction GolangBuildOpts.Output is not accessible from the golang moduleFunction GolangBuildOpts.Output is not accessible from the golang moduleFunction GolangBuildOpts.Output is not accessible from the golang module