func (t *Int64) Scan(src interface{}) error {
	val, ok := src.(int64)
	if !ok {
		return errors.New("Invalid value for xdr.Int64")
	}
	*t = Int64(val)
	return nil
}
Scan reads from src into an Int64
package xdr
import (
	"errors"
	"fmt"
	"github.com/lib/pq"
)
func (t *AccountFlags) Scan(src interface{}) error {
	val, ok := src.(int64)
	if !ok {
		return errors.New("Invalid value for xdr.AccountFlags")
	}
	*t = AccountFlags(val)
	return nil
}
func (t *AssetType) Scan(src interface{}) error {
	val, ok := src.(int64)
	if !ok {
		return errors.New("Invalid value for xdr.AssetType")
	}
	*t = AssetType(val)
	return nil
}