Standard library / encoding/json
encoding/json.Delim.String()
Return the one-character string representation of a JSON opening or closing delimiter. Expected stdout: '[\n'.
Formal Syntax & Structure
go syntaxgo
func (d Delim) String() stringReturn Value
string
Text representation or diagnostic.
Working Example
Example Snippetgo
package main
import ( "encoding/json" "fmt")
func must(e error) { if e != nil { panic(e) }}
func main() { fmt.Println(json.Delim('[').String()) }