1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2024-11-22 03:30:04 -05:00

Fix MfType values

"OPEN" and "END" had an accidental space between them before in the
comment the original list was based upon
This commit is contained in:
Aaron Lindsay 2017-04-06 19:18:09 -04:00
parent 5009ef3c79
commit 85406e7eb8
2 changed files with 4 additions and 5 deletions

View File

@ -1968,16 +1968,15 @@ func NewAssetClass(s string) (assetClass, error) {
type mfType uint type mfType uint
const ( const (
MfTypeOpen mfType = 1 + iota MfTypeOpenEnd mfType = 1 + iota
MfTypeEnd
MfTypeCloseEnd MfTypeCloseEnd
MfTypeOther MfTypeOther
) )
var mfTypes = [...]string{"OPEN", "END", "CLOSEEND", "OTHER"} var mfTypes = [...]string{"OPENEND", "CLOSEEND", "OTHER"}
func (e mfType) Valid() bool { func (e mfType) Valid() bool {
return e >= MfTypeOpen && e <= MfTypeOther return e >= MfTypeOpenEnd && e <= MfTypeOther
} }
func (e mfType) String() string { func (e mfType) String() string {

View File

@ -39,7 +39,7 @@ enums = {
"CouponFreq": ["Monthly", "Quarterly", "Semiannual", "Annual", "Other"], "CouponFreq": ["Monthly", "Quarterly", "Semiannual", "Annual", "Other"],
"CallType": ["Call", "Put", "Prefund", "Maturity"], "CallType": ["Call", "Put", "Prefund", "Maturity"],
"AssetClass": ["DomesticBond", "IntlBond", "LargeStock", "SmallStock", "IntlStock", "MoneyMrkt", "Other"], "AssetClass": ["DomesticBond", "IntlBond", "LargeStock", "SmallStock", "IntlStock", "MoneyMrkt", "Other"],
"MfType": ["Open", "End", "CloseEnd", "Other"], "MfType": ["OpenEnd", "CloseEnd", "Other"],
"OptType": ["Put", "Call"], "OptType": ["Put", "Call"],
"StockType": ["Common", "Preferred", "Convertible", "Other"], "StockType": ["Common", "Preferred", "Convertible", "Other"],
"OfxSec": ["None", "Type 1"], "OfxSec": ["None", "Type 1"],