Documentation ¶
Index ¶
- Variables
- func ColorOn(level string) bool
- func FsExists(path string) bool
- func GetLanguages() []string
- func IsAtty() bool
- func IsValidPlatform(plat string) bool
- func Must[T any](val T, err error) T
- func MustB[T any](val T, err error) bool
- func Platform() string
- func ReadFile(path string) (string, error)
- func SafePlatform(plat string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var VALID_PLATFORMS = []string{"windows", "linux", "osx", "android", "sunos"}
Possible valid platforms
Functions ¶
func GetLanguages ¶
func GetLanguages() []string
handle languages based on https://github.com/tldr-pages/tldr/blob/main/CLIENT-SPECIFICATION.md#language
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.