codec

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package codec is the internal JSON seam. It currently delegates to encoding/json; a faster library (sonic/go-json) can be swapped here behind a build tag if profiling justifies it (spec OQ-04). Hot-path call sites use this package rather than encoding/json directly so the implementation can change in one place.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v any) ([]byte, error)

Marshal serializes v to JSON.

func Unmarshal

func Unmarshal(data []byte, v any) error

Unmarshal deserializes data into v.

Types

This section is empty.

Jump to

Keyboard shortcuts

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