Documentation
¶
Index ¶
- func DoOnFailure(assertToBeTrue *bool, otherwise func())
- func DoOnFailureIgnore(assertToBeTrue *bool, otherwise func() error)
- func FormatVersion(v Version, format VersionFormat) string
- func IgnoreCloseError(when io.Closer)
- func IgnoreError(when func() error)
- func KeepCloseError(target *error, when io.Closer)
- func KeepError(target *error, when func() error)
- func MapSlice[I any, O any](in []I, mapper func(I) O) []O
- func MapSliceErr[I any, O any](in []I, mapper func(I) (O, error)) ([]O, error)
- func Must(v error, msgAndArgs ...any)
- func MustNotNil(v any, msgAndArgs ...any)
- func P[T any](a T) *T
- func ToDebugString(formatted bool, what any) string
- type Duration
- func (this Duration) IsEqualTo(other any) bool
- func (this Duration) IsZero() bool
- func (this Duration) MarshalText() (text []byte, err error)
- func (this *Duration) Native() time.Duration
- func (this *Duration) Set(text string) error
- func (this *Duration) SetNative(v time.Duration)
- func (this Duration) String() string
- func (this *Duration) UnmarshalText(text []byte) error
- type FileMode
- func (this FileMode) Get() os.FileMode
- func (this FileMode) IsEqualTo(other any) bool
- func (this FileMode) IsZero() bool
- func (this FileMode) MarshalText() (text []byte, err error)
- func (this *FileMode) Set(text string) error
- func (this FileMode) String() string
- func (this *FileMode) UnmarshalText(text []byte) error
- type Regexp
- func (this Regexp) IsEqualTo(other any) bool
- func (this Regexp) IsZero() bool
- func (this Regexp) MarshalText() (text []byte, err error)
- func (this *Regexp) MatchString(s string) bool
- func (this *Regexp) Set(text string) error
- func (this Regexp) String() string
- func (this *Regexp) UnmarshalText(text []byte) error
- type Remote
- type StructuredKey
- type Version
- type VersionEdition
- type VersionFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoOnFailure ¶
func DoOnFailure(assertToBeTrue *bool, otherwise func())
func DoOnFailureIgnore ¶
func FormatVersion ¶
func FormatVersion(v Version, format VersionFormat) string
func IgnoreCloseError ¶
func IgnoreError ¶
func IgnoreError(when func() error)
func KeepCloseError ¶
func MustNotNil ¶
func ToDebugString ¶
Types ¶
type Duration ¶
type Duration struct {
// contains filtered or unexported fields
}
func DurationOf ¶
func MustNewDuration ¶
func NewDuration ¶
func (Duration) MarshalText ¶
func (*Duration) UnmarshalText ¶
type FileMode ¶
type FileMode struct {
// contains filtered or unexported fields
}
func MustNewFileMode ¶
func NewFileMode ¶
func (FileMode) MarshalText ¶
func (*FileMode) UnmarshalText ¶
type Regexp ¶
type Regexp struct {
// contains filtered or unexported fields
}
func MustNewRegexp ¶
func (Regexp) MarshalText ¶
func (*Regexp) MatchString ¶
func (*Regexp) UnmarshalText ¶
type StructuredKey ¶
type StructuredKey []string
func StructuredKeyOf ¶
func StructuredKeyOf(args ...string) StructuredKey
func (StructuredKey) Child ¶
func (this StructuredKey) Child(key string) StructuredKey
func (StructuredKey) Index ¶
func (this StructuredKey) Index(i int) StructuredKey
func (StructuredKey) String ¶
func (this StructuredKey) String() string
type VersionEdition ¶
type VersionEdition uint8
const ( VersionEditionUnknown VersionEdition = iota VersionEditionGeneric VersionEditionExtended )
func (*VersionEdition) Set ¶
func (this *VersionEdition) Set(plain string) error
func (VersionEdition) String ¶
func (this VersionEdition) String() string
type VersionFormat ¶
type VersionFormat uint8
const ( VersionFormatShort VersionFormat = iota VersionFormatLong )
Click to show internal directories.
Click to hide internal directories.