golang
Install Go in containers based on Red Hat Universal Base Images.Installation
dagger install github.com/camptocamp/daggerverse/golang@v0.1.1
Entrypoint
Return Type
Golang !
Example
func (m *myModule) example() *Golang {
return dag.
Golang()
}
Types
Golang 🔗
Go
configuration() 🔗
Configure Go in a container
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container in which to configure Go |
Example
func (m *myModule) example(container *Container) *Container {
return dag.
Golang().
Configuration(container)
}
redhatInstallation() 🔗
Install Go in a Red Hat Universal Base Image container from packages
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container in which to install Go |
Example
func (m *myModule) example(container *Container) *Container {
return dag.
Golang().
RedhatInstallation(container)
}
redhatContainer() 🔗
Get a Red Hat Universal Base Image container with Go
Return Type
Container !
Example
func (m *myModule) example() *Container {
return dag.
Golang().
RedhatContainer()
}
redhatMinimalInstallation() 🔗
Install Go in a Red Hat Minimal Universal Base Image container from packages
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
container | Container ! | - | Container in which to install Go |
Example
func (m *myModule) example(container *Container) *Container {
return dag.
Golang().
RedhatMinimalInstallation(container)
}
redhatMinimalContainer() 🔗
Get a Red Hat Minimal Universal Base Image container with Go
Return Type
Container !
Example
func (m *myModule) example() *Container {
return dag.
Golang().
RedhatMinimalContainer()
}