buildinfo

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

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.

Jump to

Keyboard shortcuts

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