Dagger
Search

dagger-golang-calc

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/rinkiyakedad/dagger-golang-calc@6510931b8b875d9391bd404595c8dbe918933753

Entrypoint

Return Type
DaggerGolangCalc
Example
dagger -m github.com/rinkiyakedad/dagger-golang-calc@6510931b8b875d9391bd404595c8dbe918933753 call \
func (m *myModule) example() *DaggerGolangCalc  {
	return dag.
			DaggerGolangCalc()
}
@function
def example() -> dag.DaggerGolangCalc:
	return (
		dag.dagger_golang_calc()
	)
@func()
example(): DaggerGolangCalc {
	return dag
		.daggerGolangCalc()
}

Types

DaggerGolangCalc 🔗

test() 🔗

Test runs unit tests for the Go application

Return Type
String !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/rinkiyakedad/dagger-golang-calc@6510931b8b875d9391bd404595c8dbe918933753 call \
 test --source DIR_PATH
func (m *myModule) example(ctx context.Context, source *Directory) string  {
	return dag.
			DaggerGolangCalc().
			Test(ctx, source)
}
@function
async def example(source: dagger.Directory) -> str:
	return await (
		dag.dagger_golang_calc()
		.test(source)
	)
@func()
async example(source: Directory): Promise<string> {
	return dag
		.daggerGolangCalc()
		.test(source)
}

buildEnv() 🔗

BuildEnv sets up a development environment for the Go application

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/rinkiyakedad/dagger-golang-calc@6510931b8b875d9391bd404595c8dbe918933753 call \
 build-env --source DIR_PATH
func (m *myModule) example(source *Directory) *Container  {
	return dag.
			DaggerGolangCalc().
			BuildEnv(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
	return (
		dag.dagger_golang_calc()
		.build_env(source)
	)
@func()
example(source: Directory): Container {
	return dag
		.daggerGolangCalc()
		.buildEnv(source)
}