Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchOSToOSArch ¶
ArchOSToOSArch converts "Arch-OS" format to "OS/Arch" format.
func FindPlatform ¶
FindPlatform returns OS and arch. Ex: if linux/amd64 is passed, it will return linux amd64. If no platform is passed, it will return the current OS and arch.
func OSArchToArchOS ¶
OSArchToArchOS converts "OS/Arch" format to "Arch-OS" format.
Types ¶
type FormatType ¶
type FormatType string
FormatType represents the format of a platform string.
const ( // OSArchFormat represents the "OS/Arch" format. OSArchFormat FormatType = "OS/Arch" // ArchOSFormat represents the "Arch-OS" format. ArchOSFormat FormatType = "Arch-OS" // UnknownFormat represents an unknown format. UnknownFormat FormatType = "Unknown" )
func DetermineFormat ¶
func DetermineFormat(platform string) FormatType
DetermineFormat takes a platform string and returns a FormatType indicating its format.
Click to show internal directories.
Click to hide internal directories.