build

package
v1.27.12 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Code generated by runtimeos.sh. DO NOT EDIT.

Index

Constants

View Source
const (
	AIX       = "aix"
	Android   = "android"
	Darwin    = "darwin"
	Dragonfly = "dragonfly"
	FreeBSD   = "freebsd"
	Illumos   = "illumos"
	IOS       = "ios"
	JS        = "js"
	Linux     = "linux"
	NetBSD    = "netbsd"
	OpenBSD   = "openbsd"
	Plan9     = "plan9"
	Solaris   = "solaris"
	Windows   = "windows"
)
View Source
const (
	IsAIX       = runtime.GOOS == AIX
	IsAndroid   = runtime.GOOS == Android
	IsDarwin    = runtime.GOOS == Darwin
	IsDragonfly = runtime.GOOS == Dragonfly
	IsFreeBSD   = runtime.GOOS == FreeBSD
	IsIllumos   = runtime.GOOS == Illumos
	IsIOS       = runtime.GOOS == IOS
	IsJS        = runtime.GOOS == JS
	IsLinux     = runtime.GOOS == Linux
	IsNetBSD    = runtime.GOOS == NetBSD
	IsOpenBSD   = runtime.GOOS == OpenBSD
	IsPlan9     = runtime.GOOS == Plan9
	IsSolaris   = runtime.GOOS == Solaris
	IsWindows   = runtime.GOOS == Windows
)
View Source
const Codename = "Gold Grasshopper"

Variables

View Source
var (
	// Injected by build script
	Version = "unknown-dev"
	Host    = "unknown"
	User    = "unknown"
	Stamp   = "0"
	Tags    = ""

	// Set by init()
	Date        time.Time
	IsRelease   bool
	IsCandidate bool
	IsBeta      bool
	LongVersion string
	Extra       string
)

Functions

func LongVersionFor added in v1.6.0

func LongVersionFor(program string) string

LongVersionFor returns the long version string for the given program name.

func TagsList added in v1.13.0

func TagsList() []string

Types

type VersionParts added in v1.27.9

type VersionParts struct {
	Version  string   // "v1.1.4-rc.1+30-g6aaae618-dirty-crashrep"
	Tag      string   // "v1.1.4-rc.1"
	Commit   string   // "6aaae618", blank when absent
	Codename string   // "Erbium Earthworm"
	Runtime  string   // "go1.12.5"
	GOOS     string   // "darwin"
	GOARCH   string   // "amd64"
	Builder  string   // "jb@kvin.kastelo.net"
	Extra    []string // "foo", "bar"
}

func ParseVersion added in v1.27.9

func ParseVersion(line string) (VersionParts, error)

func (VersionParts) Environment added in v1.27.9

func (v VersionParts) Environment() string

Jump to

Keyboard shortcuts

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