Skip to content

HeatmapLegend🔗

Controls legend options

Definition🔗

type HeatmapLegend struct {
    // Controls if the legend is shown
    Show bool `json:"show"`
}

Methods🔗

UnmarshalJSONStrict🔗

UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode HeatmapLegend 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 (heatmapLegend *HeatmapLegend) UnmarshalJSONStrict(raw []byte) error

Equals🔗

Equals tests the equality of two HeatmapLegend objects.

func (heatmapLegend *HeatmapLegend) Equals(other HeatmapLegend) bool

Validate🔗

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

func (heatmapLegend *HeatmapLegend) Validate() error

See also🔗