PHP » GoLang |
login |
register |
about
|
hex2binhex2bin[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] |