Dagger
Search

gofmt

No long description provided.

Installation

dagger install github.com/tsirysndr/daggerverse/gofmt@7a50ed19b76471b888f6d8d6164d50c0bd211b09

Entrypoint

Return Type
Gofmt
Example
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
NameTypeDefault ValueDescription
srcDirectory !-No description provided
pathStringKind -No description provided
Example
Function Gofmt.format is not accessible from the gofmt module
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)
}