Documentation ¶
Overview ¶
Package buildinfo provides build information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Tags []string
Tags contains slice of build tags. The `cmount` tag is added by cmd/cmount/mount.go only if build is static. The `noselfupdate` tag is added by cmd/selfupdate/noselfupdate.go Other tags including `cgo` are detected in this package.
Functions ¶
func GetLinkingAndTags ¶
func GetLinkingAndTags() (linking, tagString string)
GetLinkingAndTags tells how the rclone executable was linked and returns space separated build tags or the string "none".
func GetOSVersion ¶
func GetOSVersion() (osVersion, osKernel string)
GetOSVersion returns OS version, kernel and bitness
func GetSupportedGOARM ¶
func GetSupportedGOARM() int
GetSupportedGOARM returns the ARM compatibility level of the current CPU.
Returns the integer value that can be set for the GOARM variable to build with this level as target, a value which normally corresponds to the ARM architecture version number, although it is the floating point hardware support which is the decicive factor.
Only relevant for 32-bit ARM architectures, where GOARCH=arm, which means ARMv7 and lower (ARMv8 is GOARCH=arm64 and GOARM is not considered). Highest possible value is therefore 7, while other possible values are 6 (for ARMv6) and 5 (for ARMv5, which is the lowest currently supported in go. Returns value 0 for anything else.
See also:
https://go.dev/src/runtime/os_linux_arm.go https://github.com/golang/go/wiki/GoArm
Types ¶
This section is empty.