buildinfo

package
v1.66.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 5 Imported by: 5

Documentation

Overview

Package buildinfo provides build information.

Index

Constants

This section is empty.

Variables

View Source
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 GetArch added in v1.62.0

func GetArch() string

GetArch tells the rclone executable's architecture target.

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 added in v1.56.0

func GetOSVersion() (osVersion, osKernel string)

GetOSVersion returns OS version, kernel and bitness

func GetSupportedGOARM added in v1.62.0

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.

Jump to

Keyboard shortcuts

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