golint
This module provides a function to lint Go code.
Installation
dagger install github.com/tsirysndr/daggerverse/golint@e8bed26dfefaaf4ef3d00958965575131f34c69cEntrypoint
Return Type
Golint Example
dagger -m github.com/tsirysndr/daggerverse/golint@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
func (m *MyModule) Example() *dagger.Golint {
return dag.
Golint()
}@function
def example() -> dagger.Golint:
return (
dag.golint()
)@func()
example(): Golint {
return dag
.golint()
}Types
Golint 🔗
lint() 🔗
Lint 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/golint@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
lint --src DIR_PATHfunc (m *MyModule) Example(src *dagger.Directory) *dagger.Directory {
return dag.
Golint().
Lint(src)
}@function
def example(src: dagger.Directory) -> dagger.Directory:
return (
dag.golint()
.lint(src)
)@func()
example(src: Directory): Directory {
return dag
.golint()
.lint(src)
}