Documentation
¶
Index ¶
- Variables
- func GetEnvOrDefault[T any](key string, defaultVal T, conversionFunc func(string) (T, error)) T
- func IsAppleSiliconMac(goos string, goarch string) bool
- func SHA256HashFile(path string) (string, error)
- func SHA256HashFileWithSaltAndRange(path string, start int, end int, salt string) (string, error)
- func WrapError(err error, message string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidRange = errors.New("Invalid byte range provided for file")
)
Functions ¶
func GetEnvOrDefault ¶ added in v0.14.0
GetEnvOrDefault returns an environment variable or a default if either the environment variable does not exist or fails to parse using the specified conversionFunc function
func IsAppleSiliconMac ¶ added in v0.8.0
IsAppleSiliconMac returns whether the current machine is an Apple silicon computer, such as the MacBook Air with M1.
func SHA256HashFile ¶ added in v0.14.0
func SHA256HashFileWithSaltAndRange ¶ added in v0.14.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.