Documentation ¶
Index ¶
- Variables
- type Group
- func (it Group) AllNameValues() []string
- func (it Group) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
- func (it *Group) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
- func (it *Group) AsJsonContractsBinder() corejson.JsonMarshaller
- func (it Group) Byte() byte
- func (it Group) EnumType() enuminf.EnumTyper
- func (it Group) Format(format string) (compiled string)
- func (it Group) IntegerEnumRanges() []int
- func (it Group) Is(another Group) bool
- func (it Group) IsAndroid() bool
- func (it *Group) IsAnyEnumsEqual(enums ...enuminf.BasicEnumer) bool
- func (it Group) IsAnyNamesOf(names ...string) bool
- func (it Group) IsAnyValuesEqual(anyByteValues ...byte) bool
- func (it Group) IsByteValueEqual(value byte) bool
- func (it Group) IsEnumEqual(enum enuminf.BasicEnumer) bool
- func (it Group) IsInvalid() bool
- func (it Group) IsInvalidGroup() bool
- func (it Group) IsNameEqual(name string) bool
- func (it Group) IsUnix() bool
- func (it Group) IsValid() bool
- func (it Group) IsValueEqual(value byte) bool
- func (it Group) IsWindows() bool
- func (it Group) MarshalJSON() ([]byte, error)
- func (it Group) MaxByte() byte
- func (it Group) MaxInt() int
- func (it Group) MaxValueString() string
- func (it Group) MinByte() byte
- func (it Group) MinInt() int
- func (it Group) MinMaxAny() (min, max interface{})
- func (it Group) MinValueString() string
- func (it Group) Name() string
- func (it Group) NameValue() string
- func (it Group) OnlySupportedErr(names ...string) error
- func (it Group) OnlySupportedMsgErr(message string, names ...string) error
- func (it Group) RangeNamesCsv() string
- func (it Group) RangesByte() []byte
- func (it Group) RangesDynamicMap() map[string]interface{}
- func (it Group) String() string
- func (it Group) ToNumberString() string
- func (it Group) ToPtr() *Group
- func (it Group) TypeName() string
- func (it *Group) UnmarshalJSON(data []byte) error
- func (it Group) UnmarshallEnumToValue(jsonUnmarshallingValue []byte) (byte, error)
- func (it Group) Value() byte
- func (it Group) ValueByte() byte
- func (it Group) ValueInt() int
- func (it Group) ValueInt16() int16
- func (it Group) ValueInt32() int32
- func (it Group) ValueInt8() int8
- func (it Group) ValueString() string
- func (it Group) ValueUInt16() uint16
- type GroupVariant
- type Variation
- func (it Variation) AllNameValues() []string
- func (it Variation) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
- func (it Variation) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
- func (it Variation) AsJsonContractsBinder() corejson.JsonMarshaller
- func (it Variation) EnumType() enuminf.EnumTyper
- func (it Variation) Format(format string) (compiled string)
- func (it Variation) GoosName() string
- func (it Variation) Group() Group
- func (it Variation) IntegerEnumRanges() []int
- func (it Variation) Is(other Variation) bool
- func (it Variation) IsActualGroupUnix() bool
- func (it *Variation) IsAnyEnumsEqual(enums ...enuminf.BasicEnumer) bool
- func (it Variation) IsAnyMatch(others ...Variation) bool
- func (it Variation) IsAnyNamesOf(names ...string) bool
- func (it Variation) IsAnyOperatingSystem() bool
- func (it Variation) IsAnyValuesEqual(anyByteValues ...byte) bool
- func (it Variation) IsByte(another byte) bool
- func (it Variation) IsByteValueEqual(value byte) bool
- func (it Variation) IsDarwinOrMacOs() bool
- func (it Variation) IsDragonFly() bool
- func (it Variation) IsEnumEqual(enum enuminf.BasicEnumer) bool
- func (it Variation) IsFreeBsd() bool
- func (it Variation) IsInvalid() bool
- func (it Variation) IsJavaScript() bool
- func (it Variation) IsLinux() bool
- func (it Variation) IsLinuxOrMac() bool
- func (it Variation) IsNameEqual(name string) bool
- func (it Variation) IsNetBsd() bool
- func (it Variation) IsOpenBsd() bool
- func (it Variation) IsPossibleUnixGroup() bool
- func (it Variation) IsStringsMatchAny(others ...string) bool
- func (it Variation) IsValid() bool
- func (it Variation) IsValueEqual(value byte) bool
- func (it Variation) IsWindows() bool
- func (it Variation) MarshalJSON() ([]byte, error)
- func (it Variation) MaxByte() byte
- func (it Variation) MaxInt() int
- func (it Variation) MaxValueString() string
- func (it Variation) MinByte() byte
- func (it Variation) MinInt() int
- func (it Variation) MinMaxAny() (min, max interface{})
- func (it Variation) MinValueString() string
- func (it Variation) Name() string
- func (it Variation) NameValue() string
- func (it Variation) OnlySupportedErr(names ...string) error
- func (it Variation) OnlySupportedMsgErr(message string, names ...string) error
- func (it Variation) RangeNamesCsv() string
- func (it Variation) RangesByte() []byte
- func (it Variation) RangesDynamicMap() map[string]interface{}
- func (it Variation) String() string
- func (it Variation) ToNumberString() string
- func (it Variation) ToPtr() *Variation
- func (it Variation) TypeName() string
- func (it *Variation) UnmarshalJSON(data []byte) error
- func (it Variation) UnmarshallEnumToValue(jsonUnmarshallingValue []byte) (byte, error)
- func (it Variation) Value() byte
- func (it Variation) ValueByte() byte
- func (it Variation) ValueInt() int
- func (it Variation) ValueInt16() int16
- func (it Variation) ValueInt32() int32
- func (it Variation) ValueInt8() int8
- func (it Variation) ValueString() string
- func (it Variation) ValueUInt16() uint16
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OsVariantToStringMap = map[Variation]string{ Any: osconsts.Any, Unknown: osconsts.Unknown, Windows: osconsts.Windows, Linux: osconsts.Linux, DarwinOrMacOs: osconsts.DarwinOrMacOs, FreeBsd: osconsts.FreeBsd, NetBsd: osconsts.NetBsd, OpenBsd: osconsts.OpenBsd, DragonFly: osconsts.DragonFly, Android: osconsts.Android, Plan9: osconsts.Plan9, Solaris: osconsts.Solaris, Nacl: osconsts.Nacl, Illumos: osconsts.Illumos, IOs: osconsts.IOs, Aix: osconsts.Aix, } OsStringToVariantMap = map[string]Variation{ osconsts.Any: Any, osconsts.Unknown: Unknown, osconsts.Windows: Windows, osconsts.Linux: Linux, osconsts.DarwinOrMacOs: DarwinOrMacOs, osconsts.FreeBsd: FreeBsd, osconsts.NetBsd: NetBsd, osconsts.OpenBsd: OpenBsd, osconsts.DragonFly: DragonFly, osconsts.Android: Android, osconsts.Plan9: Plan9, osconsts.Solaris: Solaris, osconsts.Nacl: Nacl, osconsts.Illumos: Illumos, osconsts.IOs: IOs, osconsts.Aix: Aix, } )
View Source
var ( CurrentGroupVariant = GetGroupVariant() // CurrentGroup Current os group CurrentGroup = CurrentGroupVariant.Group // Type Current Os Type Type = CurrentGroupVariant.Variation )
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group byte
func GetCurrentGroup ¶
func GetCurrentGroup() Group
func (Group) AllNameValues ¶ added in v1.2.16
func (Group) AsBasicByteEnumContractsBinder ¶ added in v1.0.4
func (it Group) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
func (*Group) AsBasicEnumContractsBinder ¶ added in v1.0.4
func (it *Group) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
func (*Group) AsJsonContractsBinder ¶ added in v1.0.4
func (it *Group) AsJsonContractsBinder() corejson.JsonMarshaller
func (Group) IntegerEnumRanges ¶ added in v1.2.16
func (*Group) IsAnyEnumsEqual ¶ added in v1.1.9
func (it *Group) IsAnyEnumsEqual(enums ...enuminf.BasicEnumer) bool
func (Group) IsAnyNamesOf ¶ added in v1.2.3
func (Group) IsAnyValuesEqual ¶ added in v1.1.9
func (Group) IsByteValueEqual ¶ added in v1.2.1
func (Group) IsEnumEqual ¶ added in v1.1.9
func (it Group) IsEnumEqual(enum enuminf.BasicEnumer) bool
func (Group) IsInvalidGroup ¶ added in v1.1.8
func (Group) IsNameEqual ¶ added in v1.1.9
func (Group) IsValueEqual ¶ added in v1.1.9
func (Group) MarshalJSON ¶ added in v1.0.4
func (Group) MaxValueString ¶ added in v1.2.14
func (Group) MinValueString ¶ added in v1.2.14
func (Group) OnlySupportedErr ¶ added in v1.2.16
func (Group) OnlySupportedMsgErr ¶ added in v1.2.16
func (Group) RangeNamesCsv ¶ added in v1.0.4
func (Group) RangesByte ¶ added in v1.0.4
func (Group) RangesDynamicMap ¶ added in v1.2.14
func (Group) ToNumberString ¶ added in v1.0.4
func (*Group) UnmarshalJSON ¶ added in v1.0.4
func (Group) UnmarshallEnumToValue ¶ added in v1.0.4
func (Group) ValueInt16 ¶ added in v1.1.9
func (Group) ValueInt32 ¶ added in v1.1.9
func (Group) ValueString ¶ added in v1.1.9
func (Group) ValueUInt16 ¶ added in v1.2.16
type GroupVariant ¶
func GetGroupVariant ¶
func GetGroupVariant() GroupVariant
func GetGroupVariantPtr ¶
func GetGroupVariantPtr() *GroupVariant
type Variation ¶
type Variation byte
const ( Any Variation = iota Unknown Windows Linux DarwinOrMacOs JavaScript FreeBsd NetBsd OpenBsd DragonFly Android Plan9 Solaris Nacl Illumos IOs Aix )
https://stackoverflow.com/a/50117892 | https://gist.github.com/asukakenji/f15ba7e588ac42795f421b48b8aede63 go tool dist list
func GetCurrentVariant ¶
func GetCurrentVariant() Variation
func GetVariant ¶
func (Variation) AllNameValues ¶ added in v1.2.16
func (Variation) AsBasicByteEnumContractsBinder ¶ added in v1.0.4
func (it Variation) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
func (Variation) AsBasicEnumContractsBinder ¶ added in v1.0.4
func (it Variation) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
func (Variation) AsJsonContractsBinder ¶ added in v1.0.4
func (it Variation) AsJsonContractsBinder() corejson.JsonMarshaller
func (Variation) IntegerEnumRanges ¶ added in v1.2.16
func (Variation) IsActualGroupUnix ¶ added in v0.0.7
func (*Variation) IsAnyEnumsEqual ¶ added in v1.1.9
func (it *Variation) IsAnyEnumsEqual(enums ...enuminf.BasicEnumer) bool
func (Variation) IsAnyMatch ¶ added in v0.0.7
func (Variation) IsAnyNamesOf ¶ added in v1.2.3
func (Variation) IsAnyOperatingSystem ¶ added in v0.0.7
func (Variation) IsAnyValuesEqual ¶ added in v1.1.9
func (Variation) IsByteValueEqual ¶ added in v1.2.1
func (Variation) IsDarwinOrMacOs ¶
func (Variation) IsDragonFly ¶
func (Variation) IsEnumEqual ¶ added in v1.1.9
func (it Variation) IsEnumEqual(enum enuminf.BasicEnumer) bool
func (Variation) IsJavaScript ¶
func (Variation) IsLinuxOrMac ¶ added in v0.0.7
func (Variation) IsNameEqual ¶ added in v1.1.9
func (Variation) IsPossibleUnixGroup ¶ added in v0.0.7
IsPossibleUnixGroup variation != Windows
func (Variation) IsStringsMatchAny ¶ added in v0.0.7
func (Variation) IsValueEqual ¶ added in v1.1.9
func (Variation) MarshalJSON ¶ added in v1.0.4
func (Variation) MaxValueString ¶ added in v1.2.14
func (Variation) MinMaxAny ¶ added in v1.3.15
func (it Variation) MinMaxAny() (min, max interface{})
func (Variation) MinValueString ¶ added in v1.2.14
func (Variation) OnlySupportedErr ¶ added in v1.2.16
func (Variation) OnlySupportedMsgErr ¶ added in v1.2.16
func (Variation) RangeNamesCsv ¶ added in v1.0.4
func (Variation) RangesByte ¶ added in v1.0.4
func (Variation) RangesDynamicMap ¶ added in v1.2.14
func (Variation) ToNumberString ¶ added in v1.0.4
func (*Variation) UnmarshalJSON ¶ added in v1.0.4
func (Variation) UnmarshallEnumToValue ¶ added in v1.0.4
func (Variation) ValueInt16 ¶ added in v1.1.9
func (Variation) ValueInt32 ¶ added in v1.1.9
func (Variation) ValueString ¶ added in v1.1.9
func (Variation) ValueUInt16 ¶ added in v1.2.16
Click to show internal directories.
Click to hide internal directories.