jsonutil

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package jsonutil wraps encoding/json for the two encodings senior-dev uses everywhere: compact and two-space indented, both without HTML escaping so that `<`, `>` and `&` inside model-visible text stay readable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

Marshal encodes v as compact JSON without escaping HTML characters.

func MarshalIndent

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

MarshalIndent encodes v as two-space indented JSON without escaping HTML characters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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