Documentation
¶
Index ¶
- Constants
- func ClearLastMessage(length int)
- func ClearVersion(version string) string
- func CompareExpression(exp, libDir string) (bool, error)
- func CompareVersion(a, operator, b string) (bool, error)
- func FindMinValue(values []int) int
- func FindPythonLibDirectory() string
- func FormatName(dirName string) string
- func GetAllPackageDirs(pkgName, libDir string) []string
- func GetDirSize(path string) int64
- func GetFirstPackageMetaDir(libDir, pkgName string) string
- func GetOffsetString(offset int) string
- func GetPythonBinDirectory(version string) string
- func GetPythonVersion(libDir string) string
- func GetSysPlatform() string
- func ParseDirectoryName(dirName string) (string, string, string)
- func ParseFormat(dir string) string
- func ParseOptions(args []string) ([]string, int)
- func ParsePythonVersion(path string) string
- func SelectOneDirectory(baseDir string, versions []string) string
- func ShowChoices(values []string) string
- func ShowInput(text string) string
- func SplitOperators(name string) (string, [][]string)
Constants ¶
View Source
const OS = runtime.GOOS
Variables ¶
This section is empty.
Functions ¶
func ClearLastMessage ¶
func ClearLastMessage(length int)
clear last message, by set character at start position and send null strings
func ClearVersion ¶
func CompareExpression ¶
func CompareVersion ¶
compare <a> <operator> <b> and return bool result
For example: ("4.0.0a", "<=", "4.0.0") = (400, "<=", 400) => true WARNING: Letters are also integers, starts with 1
func FindMinValue ¶
func GetAllPackageDirs ¶
func GetDirSize ¶
Count size of all files in directory and return bytes
func GetFirstPackageMetaDir ¶
func GetOffsetString ¶
func GetPythonBinDirectory ¶
func ParseDirectoryName ¶
Returns name, version, format
func ParseFormat ¶
func ParseOptions ¶
Parse first arguments and returns options and position where options end
func ParsePythonVersion ¶
func SelectOneDirectory ¶
func ShowChoices ¶
print beauty list of values and returns user choice
func SplitOperators ¶
Split name, operator and version. Returns [][]string{operator, version} if operator was split successful
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.