📌  相关文章
📜  golang 中的 %+v - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:45:01.057000             🧑  作者: Mango

代码示例1
%v    the value in a default format
    when printing structs, the plus flag (%+v) adds field names
%#v    a Go-syntax representation of the value
%T    a Go-syntax representation of the type of the value
%%    a literal percent sign; consumes no value