Documentation
¶
Index ¶
- func ArrayIdx(slice []string, val string) int
- func Chk(err error, msgs ...string)
- func ChkFatal(err error, msgs ...string)
- func DnsQuery(host string) []string
- func DnsQueryServer(host, dnsServer string) []string
- func DnsQueryServerA(host, dnsServer string) []string
- func DnsQueryServerPtr(ip, dnsServer string) []string
- func ErrMsg(e error, msgs ...string) error
- func FileExists(f string) bool
- func GetAltPath(path string) string
- func GetFile(file string) string
- func GetLegalFilename(str string) string
- func GetLocalIp() string
- func GetTimestamp() string
- func HasInt(arr []int, s int) bool
- func HasString(arr []string, s string) bool
- func HumanSize(b int64) string
- func IsAny[T comparable](a T, b ...T) bool
- func IsAnyInt(a int, b ...int) bool
- func IsAnyStr(a string, b ...string) bool
- func IsDirEmpty(name string) bool
- func IsIp(host string) bool
- func LogOutput(logfile string) func()
- func MvFile(src, dst string) error
- func MvTree(src, dst string, removeEmpties bool)
- func P(s string, i ...any)
- func PrintCmd(cmd []string)
- func Ptr[T any](a T) *T
- func RenFile(src, dst string) error
- func RmEmptyFolders(root string)
- func Run(args ...string) error
- func SetFile(file, val string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DnsQueryServer ¶
func DnsQueryServerA ¶
func DnsQueryServerPtr ¶
func FileExists ¶
func GetAltPath ¶
func GetLegalFilename ¶
func GetLocalIp ¶
func GetLocalIp() string
func GetTimestamp ¶
func GetTimestamp() string
func IsAny ¶
func IsAny[T comparable](a T, b ...T) bool
func IsDirEmpty ¶
func Ptr ¶
func Ptr[T any](a T) *T
func PStr(s string) *string { return &s }
func PInt(n int) *int { return &n }
func PBool(b bool) *bool { return &b }
func RmEmptyFolders ¶
func RmEmptyFolders(root string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.