Help us shape the future of Go! Take the 2026 Go Developer Survey

gotemplate

package module
v0.0.0-...-a23ac63 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 3 Imported by: 0

README

go-template

go-template is a small Go CLI template with a thin kong-based entrypoint, XDG-backed config loading, and release automation for GitHub Releases.

Usage

go run ./main.go --help
go run ./main.go --version
Config

The CLI loads config from one of these locations:

  1. --config /path/to/config.yaml
  2. GO_TEMPLATE_CONFIG=/path/to/config.yaml
  3. ~/.config/go-template/config.yaml

Config format:

version: 1

If the file is missing, the CLI starts with defaults.

Development

task fmt
task test
task lint
task vet
task ci
task snapshot

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CLI struct {
	Config  string           `help:"Path to config file." env:"GO_TEMPLATE_CONFIG"`
	Version kong.VersionFlag `name:"version" help:"Print version information and quit."`
}

Functions

func Run

func Run() error

Types

This section is empty.

Directories

Path Synopsis
cmd
gotemplate command
setup command
internal
test

Jump to

Keyboard shortcuts

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