util

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	FileHeaderCode        = "01"
	GroupHeaderCode       = "02"
	AccountIdentifierCode = "03"
	TransactionDetailCode = "16"
	ContinuationCode      = "88"
	AccountTrailerCode    = "49"
	GroupTrailerCode      = "98"
	FileTrailerCode       = "99"
)

Variables

This section is empty.

Functions

func GetSize

func GetSize(line string, opts ...bool) int64

func ReadField added in v0.2.0

func ReadField(input string, start int, opts ...bool) (string, int, error)

func ReadFieldAsInt added in v0.2.0

func ReadFieldAsInt(input string, start int) (int64, int, error)

func ValidateAmount added in v0.2.0

func ValidateAmount(input string) bool

func ValidateCurrencyCode added in v0.2.0

func ValidateCurrencyCode(input string) bool

func ValidateDate added in v0.3.0

func ValidateDate(input string) bool

func ValidateFundsType added in v0.2.0

func ValidateFundsType(input string) bool

func ValidateTime added in v0.2.0

func ValidateTime(input string) bool

func ValidateTypeCode added in v0.2.0

func ValidateTypeCode(input string) bool

func WriteBuffer added in v0.2.0

func WriteBuffer(total, buf *bytes.Buffer, input string, maxLen int64)

WriteBuffer

Input type (ELM1,EML2,ELM3..,ELMN)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL