Versions in this module Expand all Collapse all v0 v0.7.0 Aug 27, 2024 Changes in this version + func ArrayOKAppend[T any](array *ArrayOK[*T], values ...T) + type BDataArrayType struct + Bdata []byte + Dtype DType + Shape DataArrayShape + type BoolType *bool + func B(v bool) BoolType + func BA(v []bool) []BoolType type Color + func C(v string) Color + func CN(v []string) []Color + type DType string + const DTypeFloat32 + const DTypeFloat64 + const DTypeInt16 + const DTypeInt32 + const DTypeInt8 + const DTypeUInt16 + const DTypeUInt32 + const DTypeUInt8 + const DTypeUInt8c + type DataArrayShape []int + func (d *DataArrayShape) UnmarshalJSON(data []byte) error + func (d DataArrayShape) MarshalJSON() ([]byte, error) + type DataArrayType struct + func BDataArray(dtype DType, bdata []byte, shape []int) *DataArrayType + func DataArray[T any](data []T) *DataArrayType + func (d *DataArrayType) MarshalJSON() ([]byte, error) + func (d *DataArrayType) UnmarshalJSON(data []byte) error + func (da *DataArrayType) Value() interface{} + type IntegerType *int + func I(n int) IntegerType + func IA(n []int) []IntegerType + func IS(n string) IntegerType + type NumberType *float64 + func N(n float64) NumberType + func NA(n []float64) []NumberType + func NS(n string) NumberType + type StringType string + func S(v string) StringType v0.6.1 Aug 22, 2024 v0.6.0 Aug 21, 2024 Changes in this version + type ArrayOK struct + Array []T + Value T + func ArrayOKArray[T any](array ...T) ArrayOK[*T] + func ArrayOKValue[T any](value T) ArrayOK[*T] + func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) + func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error + type Bool *bool + var False Bool = &falseValue + var True Bool = &trueValue + type Color string + type ColorList []Color + type ColorScale struct + Name string + Values []ColorScaleReference + func (cs *ColorScale) MarshalJSON() ([]byte, error) + func (cs *ColorScale) UnmarshalJSON(data []byte) error + type ColorScaleReference struct + Color Color + NormalizedValue float64 + func (cs *ColorScaleReference) MarshalJSON() ([]byte, error) + type ColorWithColorScale struct + Color *Color + Value float64 + func UseColor(in Color) ColorWithColorScale + func UseColorScaleValues(in []float64) []ColorWithColorScale + func UseColors(in []Color) []ColorWithColorScale + func (c *ColorWithColorScale) MarshalJSON() ([]byte, error) + func (c *ColorWithColorScale) UnmarshalJSON(data []byte) error + type Fig interface + Info func() Version + type String interface + type Trace interface + GetType func() TraceType + type TraceType string + type Version struct + Cdn string + Generated string + Name string + Path string + Tag string + URL string