jsoncmerge

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(data []byte, topKey, subKey string, value any) ([]byte, error)

Merge inserts or replaces topKey.subKey in raw JSONC bytes, preserving all comments and formatting via byte-level splicing. Uses hujson AST for key location to avoid matching inside comments/strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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