cmd

package
v0.0.0-...-e064d8f Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInputJSON

func CreateInputJSON(baseDir string) error

func CreateSchemaFile

func CreateSchemaFile(xmlFilepath string) error

func CreateXMLFile

func CreateXMLFile(absFilepath, name string, numPersons int, options ...CreateXMLFileOptions) error

func GenXML

func GenXML(xmlData xml_data.Root, writer io.Writer) error

func GenXMLData

func GenXMLData(name string, persons []*person.Person) xml_data.Root

func GetInputPersonData

func GetInputPersonData(inputJSONFilepath string) *person.Person

func GetJSONSchema

func GetJSONSchema() string

func GetXMLSchema

func GetXMLSchema() string

func ReadInputJSON

func ReadInputJSON(inputJSONFilepath string) ([]byte, error)

Types

type CreateXMLFileOptions

type CreateXMLFileOptions struct {
	Concurrency      int
	ForceCreate      bool
	PredefinedPerson *person.Person
}

Jump to

Keyboard shortcuts

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