Documentation ¶
Overview ¶
Package target exposes Go targets that can be imported in magefile using import syntax. When using this package the user has to set target.BuildTarget. For more low level usage the golang package should be preferred.
Index ¶
- Variables
- type Go
- func (Go) Build(ctx context.Context) error
- func (Go) CoverProfile(ctx context.Context) error
- func (Go) CrossBuild(ctx context.Context) error
- func (Go) E2eBuild(ctx context.Context) error
- func (Go) IntegrationTest(ctx context.Context) error
- func (Go) Run(ctx context.Context) error
- func (Go) Test(ctx context.Context)
- func (Go) TestAndCover(ctx context.Context)
- func (Go) TestBuild(ctx context.Context) error
- func (Go) Tidy(ctx context.Context) error
- func (Go) TidyAndVerify(ctx context.Context) error
- func (Go) UnitTest(ctx context.Context) error
- func (Go) ViewCoverage(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BuildTarget = "" BuildMatrix = golang.DefaultBuildMatrix RunArgs = []string{} RunEnvs = map[string]string{} )
Functions ¶
This section is empty.
Types ¶
type Go ¶
func (Go) CoverProfile ¶
CoverProfile convert binary coverage into text format
func (Go) CrossBuild ¶
CrossBuild build binary for build matrix
func (Go) IntegrationTest ¶
IntegrationTest run integration tests
func (Go) TestAndCover ¶ added in v1.5.3
TestAndCover run all tests and open coverage in browser
func (Go) TestBuild ¶ added in v1.4.3
TestBuild build binary with race detection and coverage collections
func (Go) TidyAndVerify ¶
TidyAndVerify verify that go.mod matches imports
Click to show internal directories.
Click to hide internal directories.