This commit is contained in:
Tomas Dvorak
2026-02-24 10:33:59 +01:00
parent 409acd2e08
commit 898a3c303f
1374 changed files with 290409 additions and 29187 deletions
+18
View File
@@ -0,0 +1,18 @@
{
"id": "806cb7f0683295913c960f99",
"source": "go:encoding/json",
"type": "go-function",
"title": "json.func Indent",
"content": "# json.func Indent ¶\n\n```\nfunc Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error\n```\n\nIndent appends to dst an indented form of the JSON-encoded src.\nEach element in a JSON object or array begins on a new,\nindented line beginning with prefix followed by one or more\ncopies of indent according to the indentation nesting.\nThe data appended to dst does not begin with the prefix nor\nany indentation, to make it easier to embed inside other formatted JSON data.\nAlthough leading space characters (space, tab, carriage return, newline)\nat the beginning of src are dropped, trailing space characters\nat the end of src are preserved and copied to dst.\nFor example, if src has no trailing spaces, neither will dst;\nif src ends in a trailing newline, so will dst.",
"url": "https://pkg.go.dev/encoding/json#func Indent ¶",
"metadata": {
"examples": "null",
"import_path": "Standard library/encoding/json",
"kind": "function",
"package": "json",
"signature": "func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error",
"symbol": "func Indent ¶"
},
"hash": "519d6127a09b2194d4049980a0fca25be9dd3a8d15d0682733b7a8d2d4e29cab",
"timestamp": "2026-02-23T11:22:10.080602284+01:00"
}