Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Translate ¶
Translate 模板转换字符串 eg1: str="aaa:bbb:@ccc" data={ccc:100} ==> "aaa:bbb:100" eg2: str="aaa:bbb:@{ccc}" data={ccc:200} ==> "aaa:bbb:200" eg3: str="aaa:@bbb:@{ccc}" data={bbb:"abcd",ccc:200} ==> "aaa:abcd:200" eg4: str="@aaa:@bbb:@{ccc}" data={bbb:"abcd",ccc:200} ==> ":abcd:200"
func TranslateObject ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.