Versions in this module Expand all Collapse all v1 v1.4.2 May 30, 2023 v1.4.0 May 30, 2023 Changes in this version + var CancelFunc context.CancelFunc + var DaemonsCount int + var ReturnCh chan string + func CallMethod(i any, methodName string) any + func Caller(steps int) string + func CheckClockDrift() (bool, error) + func CheckSign(publicKeys [][]byte, forSign []byte, signs []byte, nodeKeyOrLogin bool) (bool, error) + func CopyFileContents(src, dst string) error + func CreateDirIfNotExists(dir string, mode os.FileMode) error + func ErrInfo(verr any, additionally ...string) error + func ErrInfoFmt(err string, a ...any) error + func GetCurrentDir() string + func GetHTTPTextAnswer(url string) (string, error) + func GetHostPort(h string) string + func GetNodeKeys() (string, string) + func GetNodePrivateKey() ([]byte, error) + func GetParent() string + func IsBanError(err error) bool + func LockOrDie(dir string) *flock.Flock + func MakeDirectory(dir string) error + func ShellExecute(cmdline string) + func ShuffleSlice(slice []string) + func StringInSlice(slice []string, v string) bool + func ToSnakeCase(s string) string + func UUID() string + func WithBan(err error) error + type BanError struct + func (b *BanError) Error() string + type Clock interface + Now func() time.Time + type ClockWrapper struct + func (cw *ClockWrapper) Now() time.Time + type MockClock struct + func (_m *MockClock) Now() time.Time