Format verbs in golang's printf
Golang has formatted I/O functions about printf
where in package fmt
.They support the format ‘verbs’ which are derived from C’ but are simpler.
Example
1 | package main |
References
go dev
go by example
Using ‘%q’ inside fmt.Printf in Go (instead of ‘%s’)
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment