version

package
v1.33.18 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package version provides version information for Buffalo.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the current version of Buffalo.
	// Injected at build time via ldflags:
	//   -X github.com/massonsky/buffalo/internal/version.Version=1.32.5
	// When built without ldflags (e.g. plain `go install`), defaults to "dev".
	Version = "dev"

	// GitCommit is the git commit hash (short).
	GitCommit = "unknown"

	// BuildDate is the date when the binary was built.
	BuildDate = "unknown"

	// GoVersion is the Go version used to build the binary.
	GoVersion = runtime.Version()

	// Platform is the OS/Arch combination.
	Platform = fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH)
)

Functions

func FullVersion added in v1.33.0

func FullVersion() string

FullVersion returns version with commit hash suffix (e.g. "1.32.5+d58ff2d").

func Info

func Info() string

Info returns formatted version information.

func Short

func Short() string

Short returns a short version string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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