Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
Marshal returns the Fed file encoding of v.
Example ¶
package main import ( "fmt" "github.com/thylong/fedach" ) func main() { routingDirectoryFile := []fedach.RoutingDirectoryRecord{ { "011000015", "O", "011000015", "0", "122415", "000000000", "FEDERAL RESERVE BANK ", "1000 PEACHTREE ST N.E. ", "ATLANTA ", "GA", "30309", "4470", "877", "372", "2457", "1", "1", " ", }, } encoded, err := fedach.Marshal(routingDirectoryFile) if err != nil { panic(err) } fmt.Printf("%s\n", encoded) }
Output:
Types ¶
type RoutingDirectoryRecord ¶
type RoutingDirectoryRecord struct { RoutingNumber string `length:"9" pos:"1-9"` OfficeCode string `length:"1" pos:"10"` ServicingFRBNumber string `length:"9" pos:"11-19"` RecordTypeCode string `length:"1" pos:"20"` ChangeDate string `length:"6" pos:"21-26"` NewRoutingNumber string `length:"9" pos:"27-35"` CustomerName string `length:"36" pos:"36-71"` Address string `length:"36" pos:"72-107"` City string `length:"20" pos:"108-127"` StateCode string `length:"2" pos:"128-129"` Zipcode string `length:"5" pos:"130-134"` ZipcodeExtension string `length:"4" pos:"135-138"` TelephoneAreaCode string `length:"3" pos:"139-141"` TelephonePrefixNumber string `length:"3" pos:"142-144"` TelephoneSuffixNumber string `length:"4" pos:"145-148"` InstitutionStatusCode string `length:"1" pos:"149"` DataViewCode string `length:"1" pos:"150"` Filler string `length:"5" pos:"151-155"` }
RoutingDirectoryRecord is a record of a Routing Directory file.
This file is provided by the Federal Bank Reserve Service and can be found here: https://www.frbservices.org/EPaymentsDirectory/download.html
func GetCurrentDirectoryFile ¶
func GetCurrentDirectoryFile() []RoutingDirectoryRecord
GetCurrentDirectoryFile returns last version of Fed file.
func (*RoutingDirectoryRecord) Bytes ¶
func (r *RoutingDirectoryRecord) Bytes() []byte
Bytes returns RoutingDirectoryRecord bytes representation.
Click to show internal directories.
Click to hide internal directories.