Documentation
¶
Index ¶
- func CheckSum(file string, checksum string) bool
- func ConditionFunc[T any](c bool, a, b func() T) T
- func ConditionValue[T any](c bool, a, b T) T
- func EnsureDir(baseDir string, dirs ...string)
- func GenerateMac() string
- func GetAnyFromPointer[T Valuer](value *T) any
- func GetArch() string
- func GetNodeVersion() (version string)
- func GetPythonVersion() (versions []string)
- func GetValueFromPointer[T Valuer](value *T) T
- func JsonIndent(in any) string
- func RemoveDir(dir string) error
- type Valuer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConditionFunc ¶
func ConditionValue ¶
func GenerateMac ¶
func GenerateMac() string
func GetAnyFromPointer ¶
GetAnyFromPointer 传入一个指针,如果指针为空,返回空接口,否则返回指针指向的值
func GetNodeVersion ¶
func GetNodeVersion() (version string)
func GetPythonVersion ¶
func GetPythonVersion() (versions []string)
func GetValueFromPointer ¶
func GetValueFromPointer[T Valuer](value *T) T
GetValueFromPointer 传入一个指针,如果指针为空,返回类型的空值,否则返回指针指向的值
func JsonIndent ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.