Documentation ¶
Index ¶
- func NewTemplate(name, plain string) (*template.Template, error)
- type Bool
- func (this Bool) IsEqualTo(other any) bool
- func (this Bool) IsHardCoded() bool
- func (this Bool) IsZero() bool
- func (this Bool) MarshalText() (text []byte, err error)
- func (this Bool) Render(data any) (bool, error)
- func (this *Bool) Set(text string) error
- func (this Bool) String() string
- func (this *Bool) UnmarshalText(text []byte) error
- func (this Bool) Validate() error
- type Duration
- func (this Duration) IsEqualTo(other any) bool
- func (this Duration) IsHardCoded() bool
- func (this Duration) IsZero() bool
- func (this Duration) MarshalText() (text []byte, err error)
- func (this Duration) Render(data any) (time.Duration, error)
- func (this *Duration) Set(text string) error
- func (this Duration) String() string
- func (this *Duration) UnmarshalText(text []byte) error
- func (this Duration) Validate() error
- type Int64
- func (this Int64) IsEqualTo(other any) bool
- func (this Int64) IsHardCoded() bool
- func (this Int64) IsZero() bool
- func (this Int64) MarshalText() (text []byte, err error)
- func (this Int64) Render(data any) (int64, error)
- func (this *Int64) Set(text string) error
- func (this Int64) String() string
- func (this *Int64) UnmarshalText(text []byte) error
- func (this Int64) Validate() error
- type String
- func (this String) IsEqualTo(other any) bool
- func (this String) IsHardCoded() bool
- func (this String) IsZero() bool
- func (this String) MarshalText() (text []byte, err error)
- func (this String) Render(data any) (string, error)
- func (this *String) Set(text string) error
- func (this String) String() string
- func (this *String) UnmarshalText(text []byte) error
- func (this String) Validate() error
- type Strings
- type TextMarshaller
- func (this TextMarshaller[T, PT]) IsEqualTo(other any) bool
- func (this TextMarshaller[T, PT]) IsZero() bool
- func (this TextMarshaller[T, PT]) MarshalText() (text []byte, err error)
- func (this TextMarshaller[T, PT]) Render(data any) (T, error)
- func (this *TextMarshaller[T, PT]) Set(text string) error
- func (this TextMarshaller[T, PT]) String() string
- func (this *TextMarshaller[T, PT]) UnmarshalText(text []byte) error
- func (this TextMarshaller[T, PT]) Validate() error
- type TextMarshallerArgument
- type TextMarshallerArgumentP
- type Uint64
- func (this Uint64) IsEqualTo(other any) bool
- func (this Uint64) IsHardCoded() bool
- func (this Uint64) IsZero() bool
- func (this Uint64) MarshalText() (text []byte, err error)
- func (this Uint64) Render(data any) (uint64, error)
- func (this *Uint64) Set(text string) error
- func (this Uint64) String() string
- func (this *Uint64) UnmarshalText(text []byte) error
- func (this Uint64) Validate() error
- type Url
- func (this Url) IsEqualTo(other any) bool
- func (this Url) IsHardCoded() bool
- func (this Url) IsZero() bool
- func (this Url) MarshalText() (text []byte, err error)
- func (this Url) Render(data any) (*url.URL, error)
- func (this *Url) Set(text string) error
- func (this Url) String() string
- func (this *Url) UnmarshalText(text []byte) error
- func (this Url) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
func MustNewBool ¶
func (Bool) IsHardCoded ¶
func (Bool) MarshalText ¶
func (*Bool) UnmarshalText ¶
type Duration ¶ added in v0.5.0
type Duration struct {
// contains filtered or unexported fields
}
func DurationOf ¶ added in v0.5.0
func MustNewDuration ¶ added in v0.5.0
func NewDuration ¶ added in v0.5.0
func (Duration) IsHardCoded ¶ added in v0.5.0
func (Duration) MarshalText ¶ added in v0.5.0
func (*Duration) UnmarshalText ¶ added in v0.5.0
type Int64 ¶ added in v0.4.0
type Int64 struct {
// contains filtered or unexported fields
}
func MustNewInt64 ¶ added in v0.4.0
func (Int64) IsHardCoded ¶ added in v0.4.0
func (Int64) MarshalText ¶ added in v0.4.0
func (*Int64) UnmarshalText ¶ added in v0.4.0
type String ¶
type String struct {
// contains filtered or unexported fields
}
func MustNewString ¶
func (String) IsHardCoded ¶
func (String) MarshalText ¶
func (*String) UnmarshalText ¶
type Strings ¶ added in v0.2.0
type Strings []String
func MustNewStrings ¶ added in v0.2.0
func NewStrings ¶ added in v0.2.0
type TextMarshaller ¶
type TextMarshaller[T TextMarshallerArgument, PT TextMarshallerArgumentP[T]] struct { // contains filtered or unexported fields }
func MustNewTextMarshaller ¶
func MustNewTextMarshaller[T TextMarshallerArgument, PT TextMarshallerArgumentP[T]](plain string) TextMarshaller[T, PT]
func NewTextMarshaller ¶
func NewTextMarshaller[T TextMarshallerArgument, PT TextMarshallerArgumentP[T]](plain string) (TextMarshaller[T, PT], error)
func (TextMarshaller[T, PT]) IsEqualTo ¶
func (this TextMarshaller[T, PT]) IsEqualTo(other any) bool
func (TextMarshaller[T, PT]) IsZero ¶
func (this TextMarshaller[T, PT]) IsZero() bool
func (TextMarshaller[T, PT]) MarshalText ¶
func (this TextMarshaller[T, PT]) MarshalText() (text []byte, err error)
func (TextMarshaller[T, PT]) Render ¶
func (this TextMarshaller[T, PT]) Render(data any) (T, error)
func (*TextMarshaller[T, PT]) Set ¶
func (this *TextMarshaller[T, PT]) Set(text string) error
func (TextMarshaller[T, PT]) String ¶
func (this TextMarshaller[T, PT]) String() string
func (*TextMarshaller[T, PT]) UnmarshalText ¶
func (this *TextMarshaller[T, PT]) UnmarshalText(text []byte) error
func (TextMarshaller[T, PT]) Validate ¶ added in v0.4.0
func (this TextMarshaller[T, PT]) Validate() error
type TextMarshallerArgument ¶
type TextMarshallerArgument interface { encoding.TextMarshaler }
type TextMarshallerArgumentP ¶
type TextMarshallerArgumentP[T TextMarshallerArgument] interface { *T encoding.TextUnmarshaler }
type Uint64 ¶
type Uint64 struct {
// contains filtered or unexported fields
}
func MustNewUint64 ¶
func (Uint64) IsHardCoded ¶
func (Uint64) MarshalText ¶
func (*Uint64) UnmarshalText ¶
type Url ¶ added in v0.4.0
type Url struct {
// contains filtered or unexported fields
}
func MustNewUrl ¶ added in v0.4.0
func (Url) IsHardCoded ¶ added in v0.4.0
func (Url) MarshalText ¶ added in v0.4.0
func (*Url) UnmarshalText ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.