File tree Expand file tree Collapse file tree 2 files changed +11
-28
lines changed
Expand file tree Collapse file tree 2 files changed +11
-28
lines changed Original file line number Diff line number Diff line change 55 "log"
66 "reflect"
77 "strconv"
8+ "unicode"
9+ "unicode/utf8"
810)
911
1012func unMarshallXmlRPC (in xmlrpc.Struct , out interface {}) {
@@ -118,3 +120,11 @@ func setInt(in interface{}, out reflect.Value) {
118120 }
119121 out .SetInt (f )
120122}
123+
124+ func UF (s string ) string {
125+ if s == "" {
126+ return ""
127+ }
128+ r , n := utf8 .DecodeRuneInString (s )
129+ return string (unicode .ToUpper (r )) + s [n :]
130+ }
Original file line number Diff line number Diff line change @@ -6,29 +6,8 @@ import (
66 "net"
77 "net/http"
88 "time"
9- "unicode"
10- "unicode/utf8"
119)
1210
13- /* Needed
14- * session.logout
15- * VBD.get_record
16- * VDI.get_record
17- * network.get_record
18- */
19-
20- /* Completed
21- * PIF.get_record
22- * VM.get_all
23- * VM.get_record
24- * VIF.get_record
25- * host.get_record
26- * host.get_hostname
27- * session.get_record
28- * session.login_with_password
29- * event.register event.unregister event.next
30- */
31-
3211type XapiClient struct {
3312 Session string
3413 Uri string
@@ -192,10 +171,4 @@ func checkResponse(res xmlrpc.Struct) error {
192171 return fmt .Errorf ("XenServer Failed: %s" , error_string )
193172}
194173
195- func UF (s string ) string {
196- if s == "" {
197- return ""
198- }
199- r , n := utf8 .DecodeRuneInString (s )
200- return string (unicode .ToUpper (r )) + s [n :]
201- }
174+
You can’t perform that action at this time.
0 commit comments