Dagger
Search

test

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/jpadams/test-go-helper@c13bd2dbfa0dc30805d05cfbe163eb6f9e373e55

Entrypoint

Return Type
Test
Example
dagger -m github.com/jpadams/test-go-helper@c13bd2dbfa0dc30805d05cfbe163eb6f9e373e55 call \
func (m *myModule) example() *Test  {
	return dag.
			Test()
}
@function
def example() -> dag.Test:
	return (
		dag.test()
	)
@func()
example(): Test {
	return dag
		.test()
}

Types

Test 🔗

foo() 🔗

Returns lines that match a pattern in the files of the provided Directory

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
helperDirectory !-No description provided
Example
dagger -m github.com/jpadams/test-go-helper@c13bd2dbfa0dc30805d05cfbe163eb6f9e373e55 call \
 foo --src DIR_PATH --helper DIR_PATH
func (m *myModule) example(src *Directory, helper *Directory) *Container  {
	return dag.
			Test().
			Foo(src, helper)
}
@function
def example(src: dagger.Directory, helper: dagger.Directory) -> dagger.Container:
	return (
		dag.test()
		.foo(src, helper)
	)
@func()
example(src: Directory, helper: Directory): Container {
	return dag
		.test()
		.foo(src, helper)
}