Documentation
¶
Index ¶
- Constants
- Variables
- type OS
- func (o *OS) GetAliases() []string
- func (o *OS) GetArchitecture() string
- func (o *OS) GetArchitectures() []string
- func (o *OS) GetExtensions() []string
- func (o *OS) GetInvalidLibraryNames() []string
- func (o *OS) GetLibrary() string
- func (o *OS) GetLibraryNames() []string
- func (o *OS) GetOS() []string
- func (o *OS) InvalidArchitectures() []string
- func (o *OS) InvalidOS() []string
Constants ¶
View Source
const ( Windows = "windows" Linux = "linux" Darwin = "darwin" FreeBSD = "freebsd" AMD64 = "amd64" ARM64 = "arm64" ARM32 = "arm32" // note: there is no such thing as arm32, but this is just to standardize the naming AMD32 = "amd32" // note: there is no such thing as amd32, but this is just to standardize the naming LIBC = "libc" MUSL = "musl" )
Variables ¶
View Source
var ( AMD64Architectures = []string{"amd64", "x86_64", "x86-64", "64bit", "x64", "64-bit"} ARM64Architectures = []string{"arm64", "aarch64", "armv8-a", "arm64-bit"} X86Architectures = []string{"x86", "i686", "i386"} ARM32Architectures = []string{"armv7", "armv6", "armv5", "armv4"} LIBCNames = []string{"libc", "glibc", "gnu", "gnueabihf"} MUSLNames = []string{"musl", "musl-libc", "musleabihf"} )
Functions ¶
This section is empty.
Types ¶
type OS ¶
type OS struct {
Name string
Arch string
Aliases []string
Architectures []string
Extensions []string
Library string
}
func (*OS) GetAliases ¶ added in v1.0.3
func (*OS) GetArchitecture ¶
func (*OS) GetArchitectures ¶
func (*OS) GetExtensions ¶
func (*OS) GetInvalidLibraryNames ¶ added in v1.10.0
func (*OS) GetLibrary ¶ added in v1.10.0
func (*OS) GetLibraryNames ¶ added in v1.10.0
func (*OS) InvalidArchitectures ¶
Click to show internal directories.
Click to hide internal directories.