GoLang alternatives for PHP functions
[code] func Bin2hex(str string) (string, error) { i, err := strconv.ParseInt(str, 2, 0) if err != nil { return "", err } return strconv.FormatInt(i, 16), nil } [/code]