Documentation
¶
Index ¶
- func Delete(path string) error
- func Err(err error, a ...string)
- func Errs(errs []error)
- func GetBreadcrumbs(url string) ([]string, error)
- 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 IsNilValue[T constraints.Ordered](a T) bool
- 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(timestamp 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)
- func WorkshopIDFromURL(url string) (int, error)
- func WorkshopIDToURL(id any) (string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBreadcrumbs ¶
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 IsNilValue ¶ added in v1.2.0
func IsNilValue[T constraints.Ordered](a T) bool
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
func WorkshopIDFromURL ¶ added in v1.2.0
Extracts the Workshop ID from its URL.
func WorkshopIDToURL ¶ added in v1.2.0
Converts a Workshop ID to a Workshop URL
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.