Versions in this module Expand all Collapse all v0 v0.0.5 Nov 12, 2024 v0.0.3 Nov 12, 2024 Changes in this version + var Validate *validator.Validate = NewValidator(afero.NewOsFs()) + func Assert(params ...interface{}) + func CreateFile(fs afero.Fs, name, content string) error + func FileSize(fs afero.Fs, name string) int64 + func FileSize2(fs afero.Fs, name string) (int64, error) + func First[T any](first T, rest ...interface{}) T + func GetEnvDefault(key, defaultValue string) string + func GetFirstSubdir(root, path string) string + func IsAbs(path string) bool + func IsKeyBlacklisted(key string) bool + func IsKeyValueBlacklisted(key string) bool + func IsSecureFileName(name string) bool + func IsValidID(s string) bool + func LeadingDigits(s string) string + func MoveFile(src afero.Fs, oldname string, dst afero.Fs, newname string) error + func NewValidator(fs afero.Fs) *validator.Validate + func NoSuchFile(fs afero.Fs, name string) bool + type ErrNoSuchDirectory struct + Path string + func (e ErrNoSuchDirectory) Error() string + type Error string + func (e Error) Error() string + type ErrorCode struct + func NewErrorCode(err error, code int) ErrorCode + func (e *ErrorCode) Code() int