Documentation ¶ Index ¶ func Marshal(v any) ([]byte, error) func PatchExpr(n ast.Node, patchPos func(n ast.Node)) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Marshal ¶ added in v0.6.0 func Marshal(v any) ([]byte, error) Marshal is a replacement for json.Marshal without HTML escaping. func PatchExpr ¶ added in v0.16.0 func PatchExpr(n ast.Node, patchPos func(n ast.Node)) PatchExpr simplifies the AST parsed from JSON. TODO: some of the modifications are already done in format, but are a package deal of a more aggressive simplify. Other pieces of modification should probably be moved to format. Types ¶ This section is empty. Source Files ¶ View all Source files encode.gopatch.go Click to show internal directories. Click to hide internal directories.