gofmt
No long description provided.
Installation
dagger install github.com/tsirysndr/daggerverse/gofmt@7a50ed19b76471b888f6d8d6164d50c0bd211b09
Entrypoint
Return Type
Gofmt
Example
dagger -m github.com/tsirysndr/daggerverse/gofmt@7a50ed19b76471b888f6d8d6164d50c0bd211b09 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 | StringKind | - | No description provided |
Example
dagger -m github.com/tsirysndr/daggerverse/gofmt@7a50ed19b76471b888f6d8d6164d50c0bd211b09 call \
format
func (m *myModule) example(src ) {
return dag.
Gofmt().
Format(src)
}
@function
def example(src: ) -> :
return (
dag.gofmt()
.format(src)
)
@func()
example(src: ): {
return dag
.gofmt()
.format(src)
}