package pkg import "strconv" func StringToUint(id string) (uint, error) { idVal, err := strconv.ParseUint(id, 10, 64) return uint(idVal), err }