Documentation
¶
Overview ¶
Package golang provides golang toolchain (go) support for dukkha
Index ¶
Constants ¶
View Source
const TaskKindBuild = "build"
View Source
const TaskKindTest = "test"
View Source
const ToolKind = "golang"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CGOSepc ¶
type CGOSepc struct { rs.BaseField `yaml:"-"` // Enable cgo Enabled bool `yaml:"enabled"` // CGO_CPPFLAGS CPPFlags []string `yaml:"cppflags"` // CGO_CFLAGS CFlags []string `yaml:"cflags"` // CGO_CXXFLAGS CXXFlags []string `yaml:"cxxflags"` // CGO_FFLAGS FFlags []string `yaml:"fflags"` // CGO_LDFLAGS LDFlags []string `yaml:"ldflags"` CC string `yaml:"cc"` CXX string `yaml:"cxx"` FC string `yaml:"fc"` }
type TaskBuild ¶
type TaskBuild struct { rs.BaseField `yaml:"-"` TaskName string `yaml:"name"` tools.BaseTask `yaml:",inline"` Chdir string `yaml:"chdir"` Path string `yaml:"path"` ExtraArgs []string `yaml:"extra_args"` Outputs []string `yaml:"outputs"` BuildOptions buildOptions `yaml:",inline"` CGO CGOSepc `yaml:"cgo"` }
func (*TaskBuild) GetExecSpecs ¶
func (c *TaskBuild) GetExecSpecs( rc dukkha.TaskExecContext, options dukkha.TaskMatrixExecOptions, ) ([]dukkha.TaskExecSpec, error)
type TaskTest ¶
type TaskTest struct { rs.BaseField `yaml:"-"` TaskName string `yaml:"name"` tools.BaseTask `yaml:",inline"` CGO CGOSepc `yaml:"cgo"` Path string `yaml:"path"` Chdir string `yaml:"chdir"` Build buildOptions `yaml:",inline"` Test testSpec `yaml:",inline"` Benchmark testBenchmarkSpec `yaml:"benchmark"` Profile testProfileSpec `yaml:"profile"` // CustomCmdPrefix to run compiled test file with this cmd prefix CustomCmdPrefix []string `yaml:"custom_cmd_prefix"` // custom args only used when running the test CustomArgs []string `yaml:"custom_args"` }
func (*TaskTest) GetExecSpecs ¶
func (c *TaskTest) GetExecSpecs( rc dukkha.TaskExecContext, options dukkha.TaskMatrixExecOptions, ) ([]dukkha.TaskExecSpec, error)
Click to show internal directories.
Click to hide internal directories.