goVersion
No long description provided.
Installation
dagger install github.com/jpadams/daggerverse/goVersion@edca7e439bae5416d890de1a8fd2546483c1e075
Entrypoint
Return Type
GoVersion
Example
dagger -m github.com/jpadams/daggerverse/goVersion@edca7e439bae5416d890de1a8fd2546483c1e075 call \
func (m *myModule) example() *GoVersion {
return dag.
GoVersion()
}
@function
def example() -> dag.GoVersion:
return (
dag.go_version()
)
@func()
example(): GoVersion {
return dag
.goVersion()
}
Types
GoVersion 🔗
version() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
srcDir | Directory ! | - | No description provided |
Example
dagger -m github.com/jpadams/daggerverse/goVersion@edca7e439bae5416d890de1a8fd2546483c1e075 call \
version --src-dir DIR_PATH
func (m *myModule) example(ctx context.Context, srcDir *Directory) string {
return dag.
GoVersion().
Version(ctx, srcDir)
}
@function
async def example(src_dir: dagger.Directory) -> str:
return await (
dag.go_version()
.version(src_dir)
)
@func()
async example(srcDir: Directory): Promise<string> {
return dag
.goVersion()
.version(srcDir)
}