GoLang alternatives for PHP functions
[code] func Hex2Bin(hex string) (string, error) { ui, err := strconv.ParseUint(hex, 16, 64) if err != nil { return "", err } return fmt.Sprintf("%016b", ui), nil } [/code]