Documentation ¶
Index ¶
- func GetJSON(boxList *List, outData *[]byte) error
- func GetXML(boxList *List, outData *[]byte) error
- func GetYAML(boxList *List, outData *[]byte) error
- func ParseXML(data []byte, boxList *List) error
- func ReadXML(file string, textData *[]byte) error
- func WriteToFile(outData *[]byte, file string) error
- type Address
- type Box
- type Datbox
- type Hierarchy
- type List
- type Name
- type Person
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteToFile ¶ added in v0.0.2
Types ¶
type Address ¶
type Address struct { XMLName xml.Name `xml:"address" json:"-" yaml:"-"` Code int `xml:"code,omitempty" json:"code,omitempty" yaml:"code,omitempty"` City string `xml:"city,omitempty" json:"city,omitempty" yaml:"city,omitempty"` District string `xml:"district,omitempty" json:"district,omitempty" yaml:"district,omitempty"` Street string `xml:"street,omitempty" json:"street,omitempty" yaml:"street,omitempty"` Cp string `xml:"cp,omitempty" json:"cp,omitempty" yaml:"cp,omitempty"` Co string `xml:"co,omitempty" json:"co,omitempty" yaml:"co,omitempty"` Ce string `xml:"ce,omitempty" json:"ce,omitempty" yaml:"ce,omitempty"` Zip string `xml:"zip,omitempty" json:"zip,omitempty" yaml:"zip,omitempty"` Region string `xml:"region,omitempty" json:"region,omitempty" yaml:"region,omitempty"` AddressPoint int `xml:"addressPoint,omitempty" json:"addressPoint,omitempty" yaml:"addressPoint,omitempty"` State string `xml:"state,omitempty" json:"state,omitempty" yaml:"state,omitempty"` FullAddress string `xml:"fullAddress,omitempty" json:"fullAddress,omitempty" yaml:"fullAddress,omitempty"` }
type Box ¶
type Box struct { XMLName xml.Name `xml:"box" json:"-" yaml:"-"` ID string `xml:"id,omitempty" json:"id,omitempty" yaml:"id,omitempty"` Type string `xml:"type,omitempty" json:"type,omitempty" yaml:"type,omitempty"` Subtype int `xml:"subtype,omitempt" json:"subtype,omitempty" yaml:"subtype,omitempty"` Name Name `xml:"name" json:"name" yaml:"name"` Ico string `xml:"ico,omitempty" json:"ico,omitempty" yaml:"ico,omitempty"` Address Address `xml:"address" json:"address" yaml:"address"` Pdz bool `xml:"pdz,omitempty" json:"pdz,omitempty" yaml:"pdz,omitempty"` Ovm bool `xml:"ovm,omitempty" json:"ovm,omitempty" yaml:"ovm,omitempty"` Hierarchy Hierarchy `xml:"hierarchy" json:"hierarchy" yaml:"hierarchy"` IdOVM string `xml:"idOVM,omitempty" json:"idOVM,omitempty" yaml:"idOVM,omitempty"` }
type Datbox ¶
func (*Datbox) CobraCommand ¶
rootCmd represents the base command when called without any subcommands
type Person ¶
type Person struct { XMLName xml.Name `xml:"person" json:"-" yaml:"-"` FirstName string `xml:"firstName" json:"firstName" yaml:"firstName"` LastName string `xml:"lastName" json:"lastName" yaml:"lastName"` MiddleName string `xml:"middleName,omitempty" yaml:"middleName,omitempty" yaml:"middleName,omitempty"` LastNameAtBirth string `xml:"lastNameAtBirth,omitempty" yaml:"lastNameAtBirth,omitempty" yaml:"lastNameAtBirth,omitempty"` }
Click to show internal directories.
Click to hide internal directories.