{"modulePath":"github.com/wavetermdev/waveterm","version":"v0.14.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ijson\n\nimplements incremental json format\n\n## Constants\n\n```go\nconst (\n\tSetCommandStr    = \"set\"\n\tDelCommandStr    = \"del\"\n\tAppendCommandStr = \"append\"\n)\n```\n\n## Functions\n\n```go\nfunc ApplyCommand(data any, command Command, budget int) (any, error)\n```\n\n```go\nfunc ApplyCommands(data any, commands []Command, budget int) (any, error)\n```\n\n```go\nfunc CombineFn_ArrayAppend(data any, value any, pp pathWithPos, opts SetPathOpts) (any, error)\n```\n\n```go\nfunc CombineFn_Inc(data any, value any, pp pathWithPos, opts SetPathOpts) (any, error)\n```\n\n```go\nfunc CombineFn_Max(data any, value any, pp pathWithPos, opts SetPathOpts) (any, error)\n```\n\n```go\nfunc CombineFn_Min(data any, value any, pp pathWithPos, opts SetPathOpts) (any, error)\n```\n\n```go\nfunc CombineFn_SetUnless(data any, value any, pp pathWithPos, opts SetPathOpts) (any, error)\n```\n\n```go\nfunc CompactIJson(fullData []byte, budget int) ([]byte, error)\n```\n\n```go\nfunc DeepEqual(v1 any, v2 any) bool\n```\n\n```go\nfunc FormatPath(path Path) string\n```\n\n```go\nfunc GetPath(data any, path []any) (any, error)\n```\n\n```go\nfunc MakeBudgetError(errStr string, path Path, index int) error\n```\n\n```go\nfunc MakePathError(errStr string, path Path, index int) error\n```\n\n```go\nfunc MakePathTypeError(path Path, index int) error\n```\n\n```go\nfunc MakeSetTypeError(errStr string, path Path, index int) error\n```\n\n```go\nfunc NormalizeNumbers(v any) any\n```\n\n```go\nfunc ParseSimplePath(input string) ([]any, error)\n```\n\n```go\nfunc SetPath(data any, path Path, value any, opts *SetPathOpts) (any, error)\n```\n\n```go\nfunc SetPathNoErr(data any, path Path, value any, opts *SetPathOpts) any\n```\n\n```go\nfunc ValidateAndMarshalCommand(command Command) ([]byte, error)\n```\n\n```go\nfunc ValidatePath(path any) error\n```\n\n## Types\n\n```go\ntype A = []any\n```\n\n```go\ntype BudgetError struct {\n\tErr string\n}\n```\n\n```go\nfunc (e BudgetError) Error() string\n```\n\n```go\ntype CombiningFunc func(curValue any, newValue any, pp pathWithPos, opts SetPathOpts) (any, error)\n```\n\n```go\ntype Command = map[string]any\n```\n\n```go\nfunc MakeAppendCommand(path Path, value any) Command\n```\n\n```go\nfunc MakeDelCommand(path Path) Command\n```\n\n```go\nfunc MakeSetCommand(path Path, value any) Command\n```\n\n```go\nfunc ParseIJson(fullData []byte) ([]Command, error)\n```\nreturns a list of commands\n\n```go\ntype M = map[string]any\n```\n\n```go\ntype Path = []any\n```\n\n```go\ntype PathError struct {\n\tErr string\n}\n```\n\n```go\nfunc (e PathError) Error() string\n```\n\n```go\ntype SetPathOpts struct {\n\tBudget    int // Budget 0 is unlimited (to set a 0 value, use -1)\n\tForce     bool\n\tRemove    bool\n\tCombineFn CombiningFunc\n}\n```\n\n```go\ntype SetTypeError struct {\n\tErr string\n}\n```\n\n```go\nfunc (e SetTypeError) Error() string\n```\n\n","path":"github.com/wavetermdev/waveterm/pkg/ijson","name":"ijson","synopsis":"implements incremental json format","isRedistributable":true}
