Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidTemplateStruct = errors.New("Invalid template struct")
View Source
var Semver = regexp.MustCompile(`^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$`)
See https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
Functions ¶
This section is empty.
Types ¶
type Makefile ¶
type Makefile struct {
Name string // Name of the binary
Semver string // Initial version (see https://semver.org/)
Build string // A build command, can reference $(BIN), $(VERSION), $(BINARY_NAME)
Test string // A command to trigger unit tests, can reference $(BIN), $(VERSION), $(BINARY_NAME)
Run string // A command to run the program, can reference $(BIN), $(VERSION), $(BINARY_NAME)
Release string // The bump release command
}
Click to show internal directories.
Click to hide internal directories.