File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 3535)
3636
3737// APIToGo returns the Go version of API call, eg. cluster.health => ClusterHealth
38- //
3938func APIToGo (s string ) string {
4039 ep := strings .Split (s , "." )
4140 ns := make ([]string , len (ep ))
@@ -51,7 +50,6 @@ func APIToGo(s string) string {
5150}
5251
5352// NameToGo returns a Go version of name, eg. node_id => NodeID.
54- //
5553func NameToGo (s string , api ... string ) string {
5654 exceptions := map [string ]string {
5755 "index" : "Index" ,
@@ -64,6 +62,7 @@ func NameToGo(s string, api ...string) string {
6462 "ip" : "IP" ,
6563 "id" : "ID" ,
6664 "ttl" : "TTL" ,
65+ "uid" : "UID" ,
6766
6867 "api" : "API" ,
6968 "ccr" : "CCR" ,
@@ -128,7 +127,6 @@ func NameToGo(s string, api ...string) string {
128127}
129128
130129// TypeToGo returns a Go version of type, eg. boolean => *bool.
131- //
132130func TypeToGo (s string , comment ... bool ) string {
133131 // If the string contains a pipe character, it's a polymorphic parameter,
134132 // ie. it takes heterogeous values, such as "boolean" and "number"
You can’t perform that action at this time.
0 commit comments