// 16进制字符串hexString := "8ac7230489e7fe0c"// 转换为10进制decimal, err := strconv.ParseInt(hexString, 16, 64)if err != nil {fmt.Println("转换错误:", err)}fmt.Printf("16进制 %s 转换为 10进制: %d\n", hexString, decimal)decimal1 := new(big.Int)decimal1.SetString(hexString, 16)fmt.Printf("16进制 %s 转换为 10进制: %d\n", hexString, decimal)var decimal2 int_, err = fmt.Sscanf(hexString, "%X", &decimal2)if err != nil {fmt.Println("转换错误:", err)}fmt.Printf("16进制 %s 转换为 10进制: %d\n", hexString, decimal2)