Documentation ¶ Index ¶ func Merge(data []byte, topKey, subKey string, value any) ([]byte, error) 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. Source Files ¶ View all Source files merge.go Click to show internal directories. Click to hide internal directories.