Skip to content

Commit d32ac2b

Browse files
remove some older comments
1 parent 3c15f61 commit d32ac2b

File tree

2 files changed

+11
-28
lines changed

2 files changed

+11
-28
lines changed

helpers.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import (
55
"log"
66
"reflect"
77
"strconv"
8+
"unicode"
9+
"unicode/utf8"
810
)
911

1012
func 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+
}

xapi.go

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff 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-
3211
type 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+

0 commit comments

Comments
 (0)