jsonutil

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package jsonutil provides JSON utilities with consistent formatting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalIndentWithNewline

func MarshalIndentWithNewline(v any, prefix, indent string) ([]byte, error)

MarshalIndentWithNewline is like json.MarshalIndent but adds a trailing newline. This ensures JSON files have proper POSIX line endings.

func MarshalWithNoHTMLEscape added in v0.5.6

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

MarshalWithNoHTMLEscape is like json.Marshal but disables HTML escaping.

Types

This section is empty.

Jump to

Keyboard shortcuts

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