tmpl

package
v0.0.0-...-c105a5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

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
}

func (*Makefile) Validate

func (mf *Makefile) Validate() error

func (*Makefile) Write

func (mf *Makefile) Write(w io.Writer) error

* Writes the makefile

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL