buildinfo

package
v0.6.29 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: AGPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NgingDir

func NgingDir() string

func NgingPluginsDir

func NgingPluginsDir() string

Types

type BuildInfo

type BuildInfo struct {
	BUILD_TIME string
	BUILD_OS   string
	BUILD_ARCH string
	CLOUD_GOX  string
	COMMIT     string
	LABEL      string // beta/alpha/stable
	VERSION    string // `4.1.6`
	PACKAGE    string // `free`
	SCHEMA_VER float64
}

func New

func New(opts ...Option) *BuildInfo

func (*BuildInfo) Apply

func (b *BuildInfo) Apply()

type Option

type Option func(*BuildInfo)

func Arch

func Arch(buildArch string) Option

func CloudGox

func CloudGox(cloudGox string) Option

func Commit

func Commit(commit string) Option

func Label

func Label(label string) Option

func OS

func OS(buildOS string) Option

func Package

func Package(pkg string) Option

func SchemaVer

func SchemaVer(schemaVer float64) Option

func Time

func Time(buildTime string) Option

func Version

func Version(version string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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