Versions in this module Expand all Collapse all v0 v0.1.0 May 5, 2024 Changes in this version + func BuildBuffer(buf Buffer) *bytes.Reader + func Decode[T any](d Decoder, data []byte) (T, error) + func IsNilish(val any) bool + func Marshal(v any) ([]byte, error) + func ParseJsonUsingBuffers[T any](buffers []Buffer, bufferViews []BufferView, data []byte) (T, error) + func Unmarshal[T any](data []byte) (T, error) + type Buffer struct + ByteLength int + URI string + type BufferView struct + Buffer int + ByteLength int + ByteOffset int + type Decoder struct + func NewDecoder(graphJSON []byte) (Decoder, error) + type Encoder struct + func (e *Encoder) Marshal(v any) ([]byte, error) + func (e *Encoder) StartNewBuffer() + func (e *Encoder) ToPgtf(v any) ([]byte, error) + type Png struct + Image image.Image + func (pi *Png) Deserialize(r io.Reader) (err error) + func (pi Png) Serialize(w io.Writer) error + type Schema struct + BufferViews []BufferView + Buffers []Buffer + Data T + type Serializable interface + Deserialize func(io.Reader) error + Serialize func(io.Writer) error