Documentation ¶
Index ¶
- Variables
- func AlphaMapKeys[V any](m map[string]V) []string
- func Contains[T comparable](xs []T, x T) bool
- func GetFileSize(path string) (int64, error)
- func GetLinuxSerialDeviceList() ([]string, error)
- func GetLocalIp() (net.IP, error)
- func GetMd5Hash(path string) (string, error)
- func InitLogging() error
- func MapKeys[K comparable, V any](m map[K]V) []K
- func WaitForInternet(maxTries int) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var BaseLogWriters = []io.Writer{&lumberjack.Logger{ Filename: mister.LogFile, MaxSize: 1, MaxBackups: 1, }}
Functions ¶
func AlphaMapKeys ¶
func Contains ¶
func Contains[T comparable](xs []T, x T) bool
Contains returns true if slice contains value.
func GetFileSize ¶
func GetLocalIp ¶
func GetMd5Hash ¶
func InitLogging ¶
func InitLogging() error
func MapKeys ¶
func MapKeys[K comparable, V any](m map[K]V) []K
MapKeys returns a list of all keys in a map.
func WaitForInternet ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.