Skip to content

ArcOption🔗

Definition🔗

type ArcOption struct {
    // Field from which to get the value. Values should be less than 1, representing fraction of a circle.
    Field *string `json:"field,omitempty"`
    // The color of the arc.
    Color *string `json:"color,omitempty"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode ArcOption from JSON.

Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, …

func (arcOption *ArcOption) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two ArcOption objects.

func (arcOption *ArcOption) Equals(other ArcOption) bool

Validate🔗

Validate checks all the validation constraints that may be defined on ArcOption fields for violations and returns them.

func (arcOption *ArcOption) Validate() error

See also🔗