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
}
This file contains implementations of the sql.Scanner interface for stellar xdr types
Scan reads from src into an AccountFlags
package xdr
import (
	"errors"
	"fmt"
	"github.com/lib/pq"
)