Go: use string for strings instead of []byte
A few conversions more, a few conversions less.
This commit is contained in:
@@ -46,7 +46,7 @@ func complete(L *ell.Ell, line string) (res []string) {
|
||||
|
||||
line = strings.ToLower(line)
|
||||
for v := L.Globals; v != nil; v = v.Next {
|
||||
name := string(v.Head.String)
|
||||
name := v.Head.String
|
||||
if strings.HasPrefix(strings.ToLower(name), line) {
|
||||
res = append(res, name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user