Are you asking how to convert the string "123" to the uint 123? If so,
look at the strconv package; specifically Atoui.
Are you asking how to get the Unicode code points of the string? If so, try
points := []int(theString)
- Evan
import (
"fmt"
)
func main() {
s := "2½4¼"
x := make([]int, len(s))
n := 0
for _,v := range s {
x[n] = int(v) - '0'
n++
}
fmt.Println(s, x)
Just to be clear: it's the built-ins print & println that might disappear,
not fmt.Print &co.
(It's still good to understand strings.)
Chris
--
Chris "allusive" Dollin