Documentation
¶
Index ¶
- type Target
- func (t Target) AsBool() (bool, error)
- func (t Target) AsRect() (rect.Rect, error)
- func (t Target) AsString() (string, error)
- func (t Target) IsBool() bool
- func (t Target) IsRect() bool
- func (t Target) IsString() bool
- func (t Target) IsZero() bool
- func (t Target) MarshalJSON() ([]byte, error)
- func (t *Target) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Target ¶
type Target struct {
// contains filtered or unexported fields
}
Target is a type-safe variant that can hold one of three value types: bool, string, or rect.Rect. It provides methods for type checking, safe value retrieval, and JSON serialization/deserialization.
func (Target) MarshalJSON ¶
func (*Target) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.