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
- 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
- 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
- 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
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 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
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 ¶
Click to show internal directories.
Click to hide internal directories.