// HexStringToBase64String converts a hexadecimal-encoded string to a base64-encoded string.
HexStringToBase64String converts a hexadecimal-encoded string to a base64-encoded string.
// HexStringToBase64String converts a hexadecimal - encoded string to a base64 - encoded string .
func HexStringToBase64String(hexstring string) (string, error) {
	decodedhex, err := hex.DecodeString(hexstring)
	if err != nil {
		return "", err
	}
	return base64.StdEncoding.EncodeToString(decodedhex), nil
}
func HexStringToBase64String ( hexstring string ) ( string , error ) { decodedhex , err := hex . DecodeString ( hexstring ) if err != nil { return " " , err } return base64 . StdEncoding . EncodeToString ( decodedhex ) , nil }
HexStringToBase64String converts a hexadecimal-encoded string to a base64-encoded string.
HexStringToBase64String converts a hexadecimal - encoded string to a base64 - encoded string .