Documentation ¶
Index ¶
Constants ¶
View Source
const VersionOverrideEnvVar = "ACTIVESTATE_CLI_OSVERSION_OVERRIDE"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompilerInfo ¶
type CompilerInfo struct { Name CompilerNameInfo // C compiler name Major int // major version number Minor int // minor version number }
CompilerInfo represents a compiler toolchain returned by Compiler().
func Compilers ¶
func Compilers() ([]*CompilerInfo, error)
Compilers returns the system's available compilers.
type CompilerNameInfo ¶
type CompilerNameInfo int
CompilerNameInfo reprents a compiler toolchain name.
const ( // Gcc represents the GNU C Compiler toolchain. Gcc CompilerNameInfo = iota // Msvc represents the Microsoft Visual C++ toolchain. Msvc // Mingw represents the Minimalist GNU for Windows toolchain. Mingw // Clang represents the LLVM/Clang toolchain. Clang )
func (CompilerNameInfo) String ¶
func (i CompilerNameInfo) String() string
type LibcInfo ¶
type LibcInfo struct { Name LibcNameInfo // C library name Major int // major version number Minor int // minor version number }
LibcInfo represents a LibC returned by Libc().
type LibcNameInfo ¶
type LibcNameInfo int
LibcNameInfo represents a C library name.
const ( // Glibc represents the GNU C library. Glibc LibcNameInfo = iota // Msvcrt represents the Microsoft Visual C++ runtime library. Msvcrt // BsdLibc represents the BSD C library. BsdLibc // UnknownLibc represents an unknown C library. UnknownLibc )
func (LibcNameInfo) String ¶
func (i LibcNameInfo) String() string
type OSVersionInfo ¶
type OSVersionInfo struct { *VersionInfo Name string // free-form name string (varies by OS) }
OSVersionInfo represents an OS version returned by OSVersion().
func OSVersion ¶
func OSVersion() (*OSVersionInfo, error)
OSVersion returns the system's OS version.
Click to show internal directories.
Click to hide internal directories.