jsonwire

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package jsonwire provides the minimal JSON string encoding used by CONGA's machine-readable outputs (shell completion and version reporting) without pulling in encoding/json.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendString

func AppendString(dst []byte, input string) []byte

AppendString appends the RFC 8259 JSON string literal for input (including the surrounding quotes) to dst and returns the extended buffer.

Escaping: '"' and '\' are escaped with a backslash; the control characters \b, \f, \n, \r, and \t use their short escapes; every other byte below 0x20 uses \u00xx. Valid UTF-8 passes through unchanged; invalid UTF-8 bytes are replaced with \ufffd so the output is always valid UTF-8. encoding/json is deliberately not imported (ADR 005 dependency boundaries).

Types

This section is empty.

Jump to

Keyboard shortcuts

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