Documentation ¶
Overview ¶
tag包实现对特定格式的struct tag字符串的分析。 并不具有很强的通用性。支持以下两种格式的字符串。
1. 以分号分隔的字符串,每个子串又以逗号分隔, 第一个字符串为键名,之后的字符串组成的数组为键值。如:
"id,1;unique;fun,add,1,2;" // 以下将会被解析成: [ "id" :["1"], "unique":nil, "fun" :["add","1","2"] ]
2.以分号分隔的字符串,每个子串括号前的字符串为健名, 括号中的字符串以逗号分隔组成数组为键值。如:
"id(1);unique;fun(add,1,2)" // 以下将会被解析成: [ "id" :["1"], "unique":nil, "fun" :["add","1","2"] ]
Index ¶
Constants ¶
View Source
const Version = "0.2.1.141117"
当前库的版本
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.