Documentation
¶
Index ¶
- Constants
- func GetFieldByIndex(r any, index string) any
- func GetMask(mask, defaultMask string) string
- func GetRecordSize(line string) int64
- func ReadCompositeField(input string, start int, spec rules.ElementRule, mask string, args ...string) (string, int, error)
- func ReadField(input string, start int, spec rules.ElementRule, mask string) (string, int, error)
- func ReadFieldAsInt(input string, start int, spec rules.ElementRule, mask string) (int64, int, error)
- func SetFieldByIndex(r any, index string, data any) error
- func ValidateField(data any, spec rules.ElementRule, mask string) error
- func ValidateLoopCode(code string) error
- func ValidateLoopCodeForHl(code string) error
- func ValidateLoopCodeForNM1(code string) error
- func ValidateLoopCodeForPer(code string) error
- func ValidateLoopCodeForPrv(code string) error
Constants ¶
View Source
const ( DataElementSeparator = "*" SubElementSeparator = ":" RepetitionSeparator = "^" SegmentTerminator = "~" )
View Source
const ( LOOP_1000A = "1000A" LOOP_1000B = "1000B" LOOP_2000A = "2000A" LOOP_2000B = "2000B" LOOP_2010AA = "2010AA" LOOP_2010AB = "2010AB" LOOP_2010BA = "2010BA" LOOP_2010BB = "2010BB" LOOP_2310A = "2310A" LOOP_2310B = "2310B" LOOP_2310C = "2310C" LOOP_2330B = "2330B" LOOP_2330C = "2330C" LOOP_2420A = "2420A" LOOP_2100A = "2100A" LOOP_2100B = "2100B" LOOP_2100C = "2100C" LOOP_2100D = "2100D" )
Variables ¶
This section is empty.
Functions ¶
func GetFieldByIndex ¶
func GetRecordSize ¶
func ReadCompositeField ¶
func ReadFieldAsInt ¶
func ValidateField ¶
func ValidateField(data any, spec rules.ElementRule, mask string) error
func ValidateLoopCode ¶
func ValidateLoopCodeForHl ¶
func ValidateLoopCodeForNM1 ¶
func ValidateLoopCodeForPer ¶
func ValidateLoopCodeForPrv ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.