Documentation ¶
Index ¶
- func ConvertUmlauts(s string) string
- func ConvertUsageToFields(usage string) (string, error)
- func IsCreditOrDebit(amount *money.Money) string
- func IsDebit(amount *money.Money) bool
- func JoinFieldsWithControl(parts []string, startControl int) (string, int)
- func MoneyStringToInt(m string) (int, error)
- func SplitStringInParts(s string, l int, trimWhitespace bool) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertUmlauts ¶
ConvertUmlauts replaces all umlauts with the two letter equivalent
func ConvertUsageToFields ¶
ConvertUsageToFields splits the usage line in strings of 27 chars and adds control chars from ?20... to ?29 if usage line is longer than 8*27 chars, it returns an error
func IsCreditOrDebit ¶
func IsCreditOrDebit(amount *money.Money) string
IsCreditOrDebit returns a C if amount is positive and a D if amount is negative
func JoinFieldsWithControl ¶
JoinFieldsWithControl adds control number to the beginning of the line
func MoneyStringToInt ¶
MoneyStringToInt converts formatted number to int, it removes every , and . and tries to parse the remaining string to a number
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.