Documentation
¶
Index ¶
- Constants
- func IsDigitsOnly(s string) bool
- func IsNotDirError(err error) bool
- func IsNotFileError(err error) bool
- func IsWebDAVError(err error) bool
- func MakeDateTimeFromString(str string) (time.Time, error)
- func MakeDateTimeString(t time.Time) string
- func MakeDateTimeStringHM(t time.Time) string
- func NewNotDirError(dest string) error
- func NewNotFileError(dest string) error
- func NewWebDAVError(url string, errorCode int) error
- func ParseSize(size string) (int64, error)
- func ParseTime(t string) (int, error)
- func SizeString(bytes int64) string
- type NotDirError
- type NotFileError
- type WebDAVError
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func IsDigitsOnly ¶
IsDigitsOnly checks if the given string contains only digits
func IsNotDirError ¶
IsNotDirError evaluates if the given error is NotDirError
func IsNotFileError ¶
IsNotFileError evaluates if the given error is NotFileError
func IsWebDAVError ¶ added in v0.11.6
IsWebDAVError evaluates if the given error is WebDAVError
func MakeDateTimeString ¶
func MakeDateTimeStringHM ¶
func NewNotDirError ¶
func NewNotFileError ¶
func NewWebDAVError ¶ added in v0.11.6
func SizeString ¶ added in v0.11.3
Types ¶
type NotDirError ¶
type NotDirError struct {
Path string
}
func (*NotDirError) ToString ¶
func (err *NotDirError) ToString() string
ToString stringifies the object
type NotFileError ¶
type NotFileError struct {
Path string
}
func (*NotFileError) ToString ¶
func (err *NotFileError) ToString() string
ToString stringifies the object
type WebDAVError ¶ added in v0.11.6
func (*WebDAVError) Error ¶ added in v0.11.6
func (err *WebDAVError) Error() string
Error returns error message
func (*WebDAVError) Is ¶ added in v0.11.6
func (err *WebDAVError) Is(other error) bool
Is tests type of error
func (*WebDAVError) ToString ¶ added in v0.11.6
func (err *WebDAVError) ToString() string
ToString stringifies the object
Click to show internal directories.
Click to hide internal directories.