Documentation
¶
Index ¶
- func Delete(path string) error
- func Err(err error, msg ...string)
- func GetBreadcrumbs(url string) ([]string, error)deprecated
- func GetDoc(url string) (*goquery.Document, error)
- func GetFileHash[T constraints.Integer](path string, bufSize T, hash hash.Hash) ([]byte, error)
- func GetFileMD5[T constraints.Integer](path string, bufSize T) ([]byte, error)
- func GetUpdated(url string) (string, error)
- func In[T comparable](slice []T, item T) bool
- func Info(msg string, a ...any)
- func JSONSet(file, key string, value any) error
- func Min[T constraints.Ordered](a T, numbers ...T) T
- func MonthStrToInt(month string) time.Month
- func ParseWorkshopTimestamp(url string) (time.Time, bool)
- func SlicesEqual[T constraints.Ordered](a, b []T) bool
- func Unzip(src, dest string) error
- func Warn(warning string, a ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBreadcrumbs
deprecated
func GetFileHash ¶ added in v1.1.0
func GetFileMD5 ¶ added in v1.1.0
func GetFileMD5[T constraints.Integer](path string, bufSize T) ([]byte, error)
func GetUpdated ¶ added in v1.1.0
Gets the Updated timestamp
func In ¶
func In[T comparable](slice []T, item T) bool
Checks if a slice of strings contains an given string.
func Min ¶ added in v1.1.0
func Min[T constraints.Ordered](a T, numbers ...T) T
Pass in any non-zero number of orderables and get back the one that's "smallest" (i.e. it < the rest).
Uses args `a` and `numbers` to ensure at least one value is given.
func MonthStrToInt ¶ added in v1.1.0
func ParseWorkshopTimestamp ¶ added in v1.1.0
func SlicesEqual ¶ added in v1.1.0
func SlicesEqual[T constraints.Ordered](a, b []T) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.