jsonx

package module
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

README

jsonx

The jsonx package contains utilities for storing additional types in json format-- e.g. colors and durations.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorRGBA

type ColorRGBA color.RGBA

func (ColorRGBA) MarshalJSON

func (c ColorRGBA) MarshalJSON() ([]byte, error)

func (*ColorRGBA) UnmarshalJSON

func (c *ColorRGBA) UnmarshalJSON(b []byte) error

type ColorUniform

type ColorUniform image.Uniform

func (ColorUniform) MarshalJSON

func (c ColorUniform) MarshalJSON() ([]byte, error)

func (*ColorUniform) UnmarshalJSON

func (c *ColorUniform) UnmarshalJSON(b []byte) error

type Duration

type Duration time.Duration

A Duration is a wrapper arouind time.Duration that allows for easier json formatting.

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL