MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Format

Method Format

pkg/util/json/encoded.go:632–639  ·  view source on GitHub ↗
(buf *bytes.Buffer)

Source from the content-addressed store, hash-verified

630}
631
632func (j *jsonEncoded) Format(buf *bytes.Buffer) {
633 decoded, err := j.decode()
634 if err != nil {
635 fmt.Fprintf(buf, `<corrupt JSON data: %s>`, err.Error())
636 } else {
637 decoded.Format(buf)
638 }
639}
640
641// RemoveIndex implements the JSON interface.
642func (j *jsonEncoded) RemoveIndex(idx int) (JSON, bool, error) {

Callers 1

StringMethod · 0.95

Calls 3

decodeMethod · 0.95
ErrorMethod · 0.65
FormatMethod · 0.65

Tested by

no test coverage detected