Versions in this module Expand all Collapse all v0 v0.2.1 Aug 13, 2024 Changes in this version + const TimestampFormat + var ErrInvalidValue error = errors.New("invalid value") + var ErrNotImplemented error = errors.New("not implemented") + func Chomp(s string) string + func CopyFile(src, dst string) error + func Date(y, m, d int) time.Time + func ExpandTilde(path string) string + func Fexists(path string) (bool, error) + func Fibonacci(n int) int64 + func FileSize(path string) (int64, error) + func FmtBytes(bytes int64) string + func GetHomeDirectory() string + func IntRange(n int) []int + func IsDir(path string) (bool, error) + func Max[T Number](x, y T) T + func Min[T Number](x, y T) T + func Mtime(path string) (time.Time, error) + func ParseURL(s string) *url.URL + func RandomFilename() string + func SplitOnWhitespace(s string) []string + func StringSlice(arr []fmt.Stringer) []string + func Trace() + func TraceInfo() string + type DateCounter struct + func NewDateCounter(y, m, d int) *DateCounter + func (dc *DateCounter) Next() time.Time + func (dc *DateCounter) Set(y, m, d int) time.Time + type ID int64 + const INVALID_ID + type Message struct + Msg string + Stamp time.Time + func (m *Message) StampString() string + type MessageBuffer struct + func CreateMessageBuffer() *MessageBuffer + func (b *MessageBuffer) AddMessage(msg string) + func (b *MessageBuffer) Count() int + func (b *MessageBuffer) Empty() bool + func (b *MessageBuffer) GetAllMessages() []Message + func (b *MessageBuffer) GetOneMessage() *Message + func (b *MessageBuffer) Running() bool + func (b *MessageBuffer) Stop() + type Number interface + type Semaphore struct + func NewSemaphore(max int) *Semaphore + func (s *Semaphore) Dec() + func (s *Semaphore) Inc()