Documentation
¶
Index ¶
- Variables
- func IsUnixGroup(rawRuntimeGoos string) bool
- func IsWindows(rawRuntimeGoos string) bool
- type Group
- func (group Group) Byte() byte
- func (group Group) Is(another Group) bool
- func (group Group) IsAndroid() bool
- func (group Group) IsJavaScript() bool
- func (group Group) IsUnix() bool
- func (group Group) IsUnknown() bool
- func (group Group) IsWindows() bool
- func (group Group) String() string
- func (group Group) Value() byte
- type GroupVariant
- type Variation
- func (variation Variation) Is(another Variation) bool
- func (variation Variation) IsByte(another byte) bool
- func (variation Variation) IsDarwinOrMacOs() bool
- func (variation Variation) IsDragonFly() bool
- func (variation Variation) IsFreeBsd() bool
- func (variation Variation) IsJavaScript() bool
- func (variation Variation) IsLinux() bool
- func (variation Variation) IsNetBsd() bool
- func (variation Variation) IsOpenBsd() bool
- func (variation Variation) IsWindows() bool
- func (variation Variation) String() string
- func (variation Variation) Value() byte
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OsVariantToStringMap = map[Variation]string{ Windows: osconsts.Windows, Linux: osconsts.Linux, DarwinOrMacOs: osconsts.DarwinOrMacOs, JavaScript: osconsts.JavaScript, FreeBsd: osconsts.FreeBsd, NetBsd: osconsts.NetBsd, OpenBsd: osconsts.OpenBsd, DragonFly: osconsts.DragonFly, Android: osconsts.Android, Unknown: osconsts.Unknown, } OsStringToVariantMap = map[string]Variation{ osconsts.Windows: Windows, osconsts.Linux: Linux, osconsts.DarwinOrMacOs: DarwinOrMacOs, osconsts.JavaScript: JavaScript, osconsts.FreeBsd: FreeBsd, osconsts.NetBsd: NetBsd, osconsts.OpenBsd: OpenBsd, osconsts.DragonFly: DragonFly, osconsts.Android: Android, osconsts.Unknown: Unknown, } )
Functions ¶
func IsUnixGroup ¶
Types ¶
type Group ¶
type Group byte
func GetCurrentGroup ¶
func GetCurrentGroup() Group
func (Group) IsJavaScript ¶
type GroupVariant ¶
func GetGroupVariant ¶
func GetGroupVariant() GroupVariant
func GetGroupVariantPtr ¶
func GetGroupVariantPtr() *GroupVariant
type Variation ¶
type Variation byte
func GetCurrentVariant ¶
func GetCurrentVariant() Variation
func GetVariant ¶
func (Variation) IsDarwinOrMacOs ¶
func (Variation) IsDragonFly ¶
func (Variation) IsJavaScript ¶
Click to show internal directories.
Click to hide internal directories.