メモメモ %q

<-https://golang.org/pkg/fmt/

Package fmt

Printing

Integer:

//
%q a single-quoted character literal safely escaped with Go syntax.

 

String and slice of bytes:

//
%q a double-quoted string safely escaped with Go syntax