Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Platform ¶
type Platform uint32
Platform holds the available TLDR page platforms.
const ( // UNKNOWN is for unknown platform type UNKNOWN Platform = iota // COMMON is a reference to the common directory of the TLDR page assets. COMMON // OSX is a reference to the osx directory of the TLDR page assets. OSX // WINDOWS is a reference to the windows directory of the TLDR page assets. WINDOWS // LINUX is a reference to the linux directory of the TLDR page assets. LINUX // ANDROID is a reference to the android directory of the TLDR page assets. ANDROID // FREEBSD is a reference to the freebsd directory of the TLDR page assets. FREEBSD // OPENBSD is a reference to the openbsd directory of the TLDR page assets. OPENBSD // NETBSD is a reference to the netbsd directory of the TLDR page assets. NETBSD // SUNOS is a reference to the sunos directory of the TLDR page assets. SUNOS )
func Actual ¶
func Actual() Platform
Actual returns the runtime platform. If a valid platform is not found it it returns COMMON.
func Parse ¶
Parse returns the Platform if valid. If the provided platform is not valid it returns an UNKNOWN platform.
Click to show internal directories.
Click to hide internal directories.