Help us shape the future of Go! Take the 2026 Go Developer Survey

jsonutil

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Overview

Package jsonutil centralizes JSON encoding for command output, compact by default and indented on request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

Marshal encodes v as JSON. When pretty is true the output is indented.

Types

This section is empty.

Jump to

Keyboard shortcuts

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