它们是标签:
字段声明后可以跟一个可选的字符串文字标记,它成为相应字段声明中所有字段的属性。这些标签通过反射接口可见,并参与结构的类型标识,否则会被忽略。
// A struct corresponding to the TimeStamp protocol buffer.
// The tag strings define the protocol buffer field numbers.
struct {
microsec uint64 "field 1"
serverIP6 uint64 "field 2"
process string "field 3"
}
有关更详细的解释和答案,请参阅此问答。
该反引号用来创建它可以包含任何类型的字符的原始字符串字面量:
原始字符串文字是反引号 `` 之间的字符序列。在引号内,除反引号外,任何字符都是合法的。