func Parse(v string) (xdr.Int64, error) {
	var f, o, r big.Rat
	_, ok := f.SetString(v)
	if !ok {
		return xdr.Int64(0), fmt.Errorf("cannot parse amount: %s", v)
	}
	o.SetInt64(One)
	r.Mul(&f, &o)
	is := r.FloatString(0)
	i, err := strconv.ParseInt(is, 10, 64)
	if err != nil {
		return xdr.Int64(0), err
	}
	return xdr.Int64(i), nil
}
Parse parses the provided as a stellar "amount", i.e. A 64-bit signed integer
that represents a decimal number with 7 digits of significance in the
fractional portion of the number.
package amount
import (
	"fmt"
	"math/big"
	"strconv"
	"github.com/stellar/go/xdr"
)
const One = 10000000
func MustParse(v string) xdr.Int64 {
	ret, err := Parse(v)
	if err != nil {
		panic(err)
	}
	return ret
}