Remix.run Logo
▲ athorax a day 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))
▲irq-1 a day ago | parent [-]

    func WithIndent(indent string) Options
https://pkg.go.dev/encoding/json/jsontext#WithIndent