gofmt
This module provides a function to format Go code.
Installation
dagger install github.com/tsirysndr/daggerverse/gofmt@e8bed26dfefaaf4ef3d00958965575131f34c69c
Entrypoint
Return Type
Gofmt
Example
dagger -m github.com/tsirysndr/daggerverse/gofmt@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
func (m *myModule) example() *Gofmt {
return dag.
Gofmt()
}
@function
def example() -> dag.Gofmt:
return (
dag.gofmt()
)
@func()
example(): Gofmt {
return dag
.gofmt()
}
Types
Gofmt 🔗
format() 🔗
Format Go code.
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
src | Directory ! | - | No description provided |
path | String | "." | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/gofmt@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
format --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory {
return dag.
Gofmt().
Format(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.gofmt()
.format(src)
)
@func()
example(src: Directory): Directory {
return dag
.gofmt()
.format(src)
}