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

template

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExpectedTemplateSource = "ThatSoftwareCompany/template-go-api"
	ExpectedLicense        = "Apache-2.0"
	ExpectedGoVersion      = "1.26.0"
	ExpectedDatabase       = "PostgreSQL"
	ExpectedMigrationTool  = "golang-migrate"
	ExpectedArchitecture   = "modular-mvc"
	ExpectedPostgreSQL     = "16+"
)

Variables

This section is empty.

Functions

func RecordProvenance added in v0.2.0

func RecordProvenance(path, version, commit string) error

Types

type Compatibility

type Compatibility struct {
	Go         string `json:"go"`
	PostgreSQL string `json:"postgresql"`
}

type Manifest

type Manifest struct {
	TemplateID            string            `json:"template_id"`
	TemplateSource        string            `json:"template_source"`
	TemplateVersion       string            `json:"template_version"`
	TemplateCommit        string            `json:"template_commit"`
	GeneratedFrom         string            `json:"generated_from"`
	Repository            string            `json:"repository"`
	License               string            `json:"license"`
	MinimumGoVersion      string            `json:"minimum_go_version"`
	Database              string            `json:"database"`
	MigrationTool         string            `json:"migration_tool"`
	Architecture          string            `json:"architecture"`
	SupportedEnvironments []string          `json:"supported_environments"`
	DependencyVersions    map[string]string `json:"dependency_versions"`
	Compatibility         Compatibility     `json:"compatibility"`
}

func Load

func Load(path string) (Manifest, error)

func (Manifest) Validate

func (m Manifest) Validate() error

Jump to

Keyboard shortcuts

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