Y
Hacker News
new
|
ask
|
show
|
jobs
by
athorax
25 days ago
I'm not sure if I'm missing something, but isn't this functionality just moved into jsontext?
https://pkg.go.dev/encoding/json/jsontext#Value.Indent
v := jsontext.Value(b) v.Indent() fmt.Println(string(v))
1 comments
irq-1
25 days ago
func WithIndent(indent string) Options
https://pkg.go.dev/encoding/json/jsontext#WithIndent
link