copybook

package
v0.0.0-...-0a944fc Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPaddedElements

func GetPaddedElements(h HXXX, mapping map[string]string, request map[string]interface{}) string

func MapJson

func MapJson(js string) (map[string]interface{}, error)

Types

type Array

type Array struct {
	TypeOf   string    `json:"typeOf"`
	Elements []Element `json:"elements"`
	Format   `json:"-"`
}

type Element

type Element struct {
	ElementIndex     int    `json:"index"`
	ElementName      string `json:"name"`
	ElementMaxLength int    `json:"maxLength"`
	ElementFormat    Format `json:"format"`
}

type Float

type Float struct {
	TypeOf   string `json:"typeOf"`
	Decimals int    `json:"decimals"`
	Format   `json:"-"`
}

type Format

type Format interface {
	// contains filtered or unexported methods
}

type HXXX

type HXXX struct {
	Elements []Element `json:"elements"`
}

func (HXXX) RenderCopybook

func (h HXXX) RenderCopybook(mapping map[string]string, request map[string]interface{}) string

type Integer

type Integer struct {
	TypeOf string `json:"typeOf"`
	Format `json:"-"`
}

type ParentElement

type ParentElement struct {
	TypeOf     string  `json:"typeOf"`
	Subelement Element `json:"subelement"`
	Format     `json:"-"`
}

type String

type String struct {
	TypeOf string `json:"typeOf"`
	Format `json:"-"`
}

Jump to

Keyboard shortcuts

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