Documentation ¶
Index ¶
- Variables
- func CopyMap[T comparable, M any](m map[T]M) map[T]M
- func DownloadOrCache(cacheKey string, hash string, url string, updates chan GenericUpdate) (r io.ReaderAt, size int64, err error)
- func ExtractMod(f io.ReaderAt, size int64, location string, updates chan GenericUpdate) error
- func SHA256Data(f io.Reader) (string, error)
- type GenericUpdate
- type Progresser
Constants ¶
This section is empty.
Variables ¶
View Source
var SemVerRegex = regexp.MustCompile(`^(<=|<|>|>=|\^)?(0|[1-9]\d*)\.(0|[1-9]d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$`)
Functions ¶
func CopyMap ¶ added in v0.0.9
func CopyMap[T comparable, M any](m map[T]M) map[T]M
func DownloadOrCache ¶ added in v0.0.9
func ExtractMod ¶ added in v0.0.9
Types ¶
type GenericUpdate ¶ added in v0.0.9
type GenericUpdate struct {
Progress float64
}
type Progresser ¶ added in v0.0.9
Click to show internal directories.
Click to hide internal directories.