Evan,
Thank you for that bit of code!!!
For all those interested here is the finished code snippet that can be
run as a stand alone example. Of course I'll integrate it into my
other code, but it will give others the idea of how to do this in the
future. For all those who may not have figured it out, but a lot of
go code has error checking built in, and in my final code I'd rewrite
this line
"decMac,_ :=strconv.Btoi64(mac,16)"
to read:
"decMac,err:=strconv.Btoi64(mac,16)"
That way I can perform a quick error check on the err variable.
------------------------------------------------------
package main
import (
"strings"
"strconv"
)
func main() {
mac:="00-15-CF-80-F8-13"
mac = strings.Replace(mac,"-","",-1)
decMac,_ :=strconv.Btoi64(mac,16)
println(mac," to ",decMac)
}
------------------------------------------------------