encode

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package encode renders wb's report types as JSON.

The report types are tagged for YAML, which is the on-disk report format. Deriving the JSON document from the YAML document — rather than maintaining a parallel set of json tags on every field — keeps the two representations identical by construction: a field added later cannot end up snake_case in the YAML report and CamelCase in the JSON an agent parses.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(value any) ([]byte, error)

JSON renders value as indented JSON using the field names its YAML tags define, with a trailing newline so the output is a complete line-oriented document.

Types

This section is empty.

Jump to

Keyboard shortcuts

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