String formatting in Golang
· One min read
"%q"will print with double quotes"%v"will print the go syntax repr, including field names
References
- String Formatting on Go By Example
"%q" will print with double quotes"%v" will print the go syntax repr, including field names