golang printf
1: 打印包括字段在内的实例的完整信息 同 %+V
fmt.Printf("Hello world! %v","hufeng")
输出:Hello world! hufeng
2:打印包括字段和限定类型名称在内的实例的完整信息
fmt.Printf("Hello world! %#v","hufeng")
Hello world! "hufeng"
3:打印某个类型的完整说明
fmt.Printf("Hello world! %T","hufeng")
Hello world! string
4:
fmt.Printf("Hello world! %t",false);
Hello world! false
5:
fmt.Printf("Hello world! %%");
Hello world! %
6:打印换行字符
var s string =
`hello
word `
hello
word