Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
gofmt
  • Loading branch information
bkmoovio committed Mar 27, 2019
1 parent cffcfb0 commit 40e5c90
Show file tree
Hide file tree
Showing 61 changed files with 138 additions and 156 deletions.
5 changes: 2 additions & 3 deletions accountCreditedDrawdown.go
Expand Up @@ -20,8 +20,8 @@ type AccountCreditedDrawdown struct {
}

// NewAccountCreditedDrawdown returns a new AccountCreditedDrawdown
func NewAccountCreditedDrawdown() AccountCreditedDrawdown {
creditDD := AccountCreditedDrawdown {
func NewAccountCreditedDrawdown() AccountCreditedDrawdown {
creditDD := AccountCreditedDrawdown{
tag: TagAccountCreditedDrawdown,
}
return creditDD
Expand Down Expand Up @@ -57,4 +57,3 @@ func (creditDD *AccountCreditedDrawdown) Validate() error {
func (creditDD *AccountCreditedDrawdown) fieldInclusion() error {
return nil
}

6 changes: 3 additions & 3 deletions accountDebitedDrawdown.go
Expand Up @@ -15,7 +15,7 @@ type AccountDebitedDrawdown struct {
// Identifier
Identifier string `json:"identifier"`
// Name
Name string `json:"name"`
Name string `json:"name"`
Address Address `json:"address,omitempty"`

// validator is composed for data validation
Expand All @@ -25,8 +25,8 @@ type AccountDebitedDrawdown struct {
}

// NewAccountDebitedDrawdown returns a new AccountDebitedDrawdown
func NewAccountDebitedDrawdown() AccountDebitedDrawdown {
debitDD := AccountDebitedDrawdown {
func NewAccountDebitedDrawdown() AccountDebitedDrawdown {
debitDD := AccountDebitedDrawdown{
tag: TagAccountDebitedDrawdown,
}
return debitDD
Expand Down
4 changes: 2 additions & 2 deletions actualAmountPaid.go
Expand Up @@ -20,8 +20,8 @@ type ActualAmountPaid struct {
}

// NewActualAmountPaid returns a new ActualAmountPaid
func NewActualAmountPaid() ActualAmountPaid {
aap := ActualAmountPaid {
func NewActualAmountPaid() ActualAmountPaid {
aap := ActualAmountPaid{
tag: TagActualAmountPaid,
}
return aap
Expand Down
4 changes: 2 additions & 2 deletions adjustment.go
Expand Up @@ -26,8 +26,8 @@ type Adjustment struct {
}

// NewAdjustment returns a new Adjustment
func NewAdjustment() Adjustment {
adj := Adjustment {
func NewAdjustment() Adjustment {
adj := Adjustment{
tag: TagAdjustment,
}
return adj
Expand Down
3 changes: 1 addition & 2 deletions advice.go
Expand Up @@ -6,7 +6,7 @@ package wire

// Advice is financial institution advice information
type Advice struct {
AdviceCode string`json:"adviceCode,omitempty"`
AdviceCode string `json:"adviceCode,omitempty"`
// LineOne
LineOne string `json:"lineOne,omitempty"`
// LineTwo
Expand All @@ -20,4 +20,3 @@ type Advice struct {
// LineSix
LineSix string `json:"lineSix,omitempty"`
}

4 changes: 2 additions & 2 deletions amountNegotiatedDiscount.go
Expand Up @@ -20,8 +20,8 @@ type AmountNegotiatedDiscount struct {
}

// NewAmountNegotiatedDiscount returns a new AmountNegotiatedDiscount
func NewAmountNegotiatedDiscount() AmountNegotiatedDiscount {
and := AmountNegotiatedDiscount {
func NewAmountNegotiatedDiscount() AmountNegotiatedDiscount {
and := AmountNegotiatedDiscount{
tag: TagAmountNegotiatedDiscount,
}
return and
Expand Down
4 changes: 2 additions & 2 deletions beneficiary.go
Expand Up @@ -20,8 +20,8 @@ type Beneficiary struct {
}

// NewBeneficiary returns a new Beneficiary
func NewBeneficiary() Beneficiary {
b := Beneficiary {
func NewBeneficiary() Beneficiary {
b := Beneficiary{
tag: TagBeneficiary,
}
return b
Expand Down
4 changes: 2 additions & 2 deletions beneficiaryCustomer.go
Expand Up @@ -20,8 +20,8 @@ type BeneficiaryCustomer struct {
}

// NewBeneficiaryCustomer returns a new BeneficiaryCustomer
func NewBeneficiaryCustomer() BeneficiaryCustomer {
bc := BeneficiaryCustomer {
func NewBeneficiaryCustomer() BeneficiaryCustomer {
bc := BeneficiaryCustomer{
tag: TagBeneficiaryCustomer,
}
return bc
Expand Down
6 changes: 3 additions & 3 deletions beneficiaryFI.go
Expand Up @@ -20,8 +20,8 @@ type BeneficiaryFI struct {
}

// NewBeneficiaryFI returns a new BeneficiaryFI
func NewBeneficiaryFI() BeneficiaryFI {
bfi := BeneficiaryFI {
func NewBeneficiaryFI() BeneficiaryFI {
bfi := BeneficiaryFI{
tag: TagBeneficiaryFI,
}
return bfi
Expand Down Expand Up @@ -56,4 +56,4 @@ func (bfi *BeneficiaryFI) Validate() error {
// invalid the WIRE will return an error.
func (bfi *BeneficiaryFI) fieldInclusion() error {
return nil
}
}
5 changes: 2 additions & 3 deletions beneficiaryReference.go
Expand Up @@ -20,8 +20,8 @@ type BeneficiaryReference struct {
}

// NewBeneficiaryReference returns a new BeneficiaryReference
func NewBeneficiaryReference() BeneficiaryReference {
br := BeneficiaryReference {
func NewBeneficiaryReference() BeneficiaryReference {
br := BeneficiaryReference{
tag: TagBeneficiaryReference,
}
return br
Expand Down Expand Up @@ -57,4 +57,3 @@ func (br *BeneficiaryReference) Validate() error {
func (br *BeneficiaryReference) fieldInclusion() error {
return nil
}

6 changes: 2 additions & 4 deletions charges.go
Expand Up @@ -36,8 +36,8 @@ type Charges struct {
}

// NewCharges returns a new Charges
func NewCharges() Charges {
c := Charges {
func NewCharges() Charges {
c := Charges{
tag: TagCharges,
}
return c
Expand Down Expand Up @@ -73,5 +73,3 @@ func (c *Charges) Validate() error {
func (c *Charges) fieldInclusion() error {
return nil
}


3 changes: 1 addition & 2 deletions const.go
Expand Up @@ -19,7 +19,7 @@ const (
TagErrorWire = "{1130}"

// TagSenderSuppliedInformation is SenderSuppliedInformation
TagSenderSuppliedInformation = "{1500}"
TagSenderSuppliedInformation = "{1500}"
// TagTypeSubType is TypeSubType
TagTypeSubType = "{1510}"
// TagInputMessageAccountabilityData is InputMessageAccountabilityData (IMAD)
Expand Down Expand Up @@ -70,7 +70,6 @@ const (
// TagAccountCreditedDrawdown is AccountCreditedDrawdown
TagAccountCreditedDrawdown = "{5400}"


// TagOriginatorToBeneficiary is OriginatorToBeneficiary
TagOriginatorToBeneficiary = "{6000}"
// TagFIReceiverFI is FIReceiverFI
Expand Down
2 changes: 1 addition & 1 deletion converters.go
Expand Up @@ -46,4 +46,4 @@ func (c *converters) numericStringField(s string, max uint) string {
func (c *converters) FormatTag(s string) string {
s = "{" + s + "}"
return s
}
}
2 changes: 1 addition & 1 deletion coverPayment.go
Expand Up @@ -20,4 +20,4 @@ type CoverPayment struct {
SwiftLineFive string `json:"swiftLineFive,omitempty"`
// SwiftLineSix
SwiftLineSix string `json:"swiftLineSix,omitempty"`
}
}
4 changes: 2 additions & 2 deletions currencyInstructedAmount.go
Expand Up @@ -20,8 +20,8 @@ type CurrencyInstructedAmount struct {
}

// NewCurrencyInstructedAmount returns a new CurrencyInstructedAmount
func NewCurrencyInstructedAmount() CurrencyInstructedAmount {
cia := CurrencyInstructedAmount {
func NewCurrencyInstructedAmount() CurrencyInstructedAmount {
cia := CurrencyInstructedAmount{
tag: TagCurrencyInstructedAmount,
}
return cia
Expand Down
4 changes: 2 additions & 2 deletions dateRemittanceDocument.go
Expand Up @@ -20,8 +20,8 @@ type DateRemittanceDocument struct {
}

// NewDateRemittanceDocument returns a new DateRemittanceDocument
func NewDateRemittanceDocument() DateRemittanceDocument {
drd := DateRemittanceDocument {
func NewDateRemittanceDocument() DateRemittanceDocument {
drd := DateRemittanceDocument{
tag: TagDateRemittanceDocument,
}
return drd
Expand Down
6 changes: 3 additions & 3 deletions errorWire.go
Expand Up @@ -24,8 +24,8 @@ type ErrorWire struct {
}

// NewErrorWire returns a new ErrorWire
func NewErrorWire() ErrorWire {
we := ErrorWire {
func NewErrorWire() ErrorWire {
we := ErrorWire{
tag: TagErrorWire,
}
return we
Expand Down Expand Up @@ -60,4 +60,4 @@ func (we *ErrorWire) Validate() error {
// invalid the WIRE will return an error.
func (we *ErrorWire) fieldInclusion() error {
return nil
}
}
6 changes: 3 additions & 3 deletions exchangeRate.go
Expand Up @@ -21,8 +21,8 @@ type ExchangeRate struct {
}

// NewExchangeRate returns a new ExchangeRate
func NewExchangeRate() ExchangeRate {
er := ExchangeRate {
func NewExchangeRate() ExchangeRate {
er := ExchangeRate{
tag: TagExchangeRate,
}
return er
Expand All @@ -36,7 +36,7 @@ func (er *ExchangeRate) Parse(record string) {
}

// String writes ExchangeRate
func (er*ExchangeRate) String() string {
func (er *ExchangeRate) String() string {
var buf strings.Builder
// ToDo: Separator
buf.Grow(12)
Expand Down
8 changes: 3 additions & 5 deletions fedWireMessage.go
Expand Up @@ -83,11 +83,11 @@ type FedWireMessage struct {
// FiBeneficiary
FiBeneficiary FiToFi `json:"fiBeneficiary,omitempty"`
// FiBeneficiaryAdvic
FiBeneficiaryAdvice Advice `json:"fibeneficiaryAdvice,omitempty"`
FiBeneficiaryAdvice Advice `json:"fiBeneficiaryAdvice,omitempty"`
// FiPaymentMethodToBeneficiary
FiPaymentMethodToBeneficiary FIPaymentMethodToBeneficiary `json:"fipaymentMethodToBeneficiary,omitempty"`
FiPaymentMethodToBeneficiary FIPaymentMethodToBeneficiary `json:"fiPaymentMethodToBeneficiary,omitempty"`
// FiAdditionalFiToFi
FiAdditionalFiToFi AdditionalFiToFi `json:"fiadditionalFiToFi,omitempty"`
FiAdditionalFiToFi AdditionalFiToFi `json:"fiAdditionalFiToFi,omitempty"`
// CurrencyInstructedAmount
CurrencyInstructedAmount CoverPayment `json:"currencyInstructedAmount,omitempty"`
// OrderingCustomer
Expand Down Expand Up @@ -130,8 +130,6 @@ type FedWireMessage struct {
RemittanceFreeText RemittanceFreeText `json:"remittanceFreeText,omitempty"`
// ServiceMessage
ServiceMessage ServiceMessage `json:"serviceMessage,omitempty"`


}

// NewFedWireMessage returns a new FedWireMessage
Expand Down
4 changes: 2 additions & 2 deletions fiAdditionalFIToFI.go
Expand Up @@ -20,8 +20,8 @@ type FIAdditionalFiToFi struct {
}

// NewFIAdditionalFiToFi returns a new FIAdditionalFiToFi
func NewFIAdditionalFiToFi() FIAdditionalFiToFi {
additional := FIAdditionalFiToFi {
func NewFIAdditionalFiToFi() FIAdditionalFiToFi {
additional := FIAdditionalFiToFi{
tag: TagFIAdditionalFiToFi,
}
return additional
Expand Down
1 change: 0 additions & 1 deletion fiBeneficiaryAdvice.go
Expand Up @@ -57,4 +57,3 @@ func (ba *FIBeneficiaryAdvice) Validate() error {
func (ba *FIBeneficiaryAdvice) fieldInclusion() error {
return nil
}

6 changes: 3 additions & 3 deletions fiBeneficiaryFI.go
Expand Up @@ -20,8 +20,8 @@ type FIBeneficiaryFI struct {
}

// NewFIBeneficiaryFI returns a new FIBeneficiaryFI
func NewFIBeneficiaryFI() FIBeneficiaryFI {
bfi := FIBeneficiaryFI {
func NewFIBeneficiaryFI() FIBeneficiaryFI {
bfi := FIBeneficiaryFI{
tag: TagFIBeneficiaryFI,
}
return bfi
Expand Down Expand Up @@ -56,4 +56,4 @@ func (bfi *FIBeneficiaryFI) Validate() error {
// invalid the WIRE will return an error.
func (bfi *FIBeneficiaryFI) fieldInclusion() error {
return nil
}
}
2 changes: 0 additions & 2 deletions fiIntermediaryFI.go
Expand Up @@ -57,5 +57,3 @@ func (ifi *FIIntermediaryFI) Validate() error {
func (ifi *FIIntermediaryFI) fieldInclusion() error {
return nil
}


3 changes: 0 additions & 3 deletions fiIntermediaryFIAdvice.go
Expand Up @@ -57,6 +57,3 @@ func (ifia *FIIntermediaryFIAdvice) Validate() error {
func (ifia *FIIntermediaryFIAdvice) fieldInclusion() error {
return nil
}



5 changes: 2 additions & 3 deletions fiReceiverFI.go
Expand Up @@ -20,8 +20,8 @@ type FIReceiverFI struct {
}

// NewFIReceiverFI returns a new FIReceiverFI
func NewFIReceiverFI() FIReceiverFI {
rfi := FIReceiverFI {
func NewFIReceiverFI() FIReceiverFI {
rfi := FIReceiverFI{
tag: TagFIReceiverFI,
}
return rfi
Expand Down Expand Up @@ -57,4 +57,3 @@ func (rfi *FIReceiverFI) Validate() error {
func (rfi *FIReceiverFI) fieldInclusion() error {
return nil
}

2 changes: 1 addition & 1 deletion file.go
Expand Up @@ -5,7 +5,7 @@ package wire

// File contains the structures of a parsed WIRE File.
type File struct {
ID string `json:"id"`
ID string `json:"id"`
FedWireMessage FedWireMessage `json:"fedWireMessage"`
}

Expand Down
2 changes: 1 addition & 1 deletion financiaInstitution.go
Expand Up @@ -14,4 +14,4 @@ type FinancialInstitution struct {
Name string `json:"name"`
// Address
Address Address `json:"address"`
}
}
4 changes: 2 additions & 2 deletions grossAmountRemittanceDocument.go
Expand Up @@ -20,8 +20,8 @@ type GrossAmountRemittanceDocument struct {
}

// NewGrossAmountRemittanceDocument returns a new GrossAmountRemittanceDocument
func NewGrossAmountRemittanceDocument() GrossAmountRemittanceDocument {
gard := GrossAmountRemittanceDocument {
func NewGrossAmountRemittanceDocument() GrossAmountRemittanceDocument {
gard := GrossAmountRemittanceDocument{
tag: TagGrossAmountRemittanceDocument,
}
return gard
Expand Down
4 changes: 2 additions & 2 deletions institutionAccount.go
Expand Up @@ -20,8 +20,8 @@ type InstitutionAccount struct {
}

// NewInstitutionAccount returns a new InstitutionAccount
func NewInstitutionAccount() InstitutionAccount {
ia := InstitutionAccount {
func NewInstitutionAccount() InstitutionAccount {
ia := InstitutionAccount{
tag: TagInstitutionAccount,
}
return ia
Expand Down
7 changes: 2 additions & 5 deletions instructedAmount.go
Expand Up @@ -23,8 +23,8 @@ type InstructedAmount struct {
}

// NewInstructedAmount returns a new InstructedAmount
func NewInstructedAmount() InstructedAmount {
ia := InstructedAmount {
func NewInstructedAmount() InstructedAmount {
ia := InstructedAmount{
tag: TagInstructedAmount,
}
return ia
Expand Down Expand Up @@ -60,6 +60,3 @@ func (ia *InstructedAmount) Validate() error {
func (ia *InstructedAmount) fieldInclusion() error {
return nil
}



0 comments on commit 40e5c90

Please sign in to comment.