xml

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg = Config{
	Pkg:     "schema",
	Version: "0.1.0",
}

Cfg are the default config for xgen. The default package name and output directory are "schema" and "xgen_out".

View Source
var SupportLang = map[string]bool{
	"Go":         true,
	"C":          true,
	"Java":       true,
	"Rust":       true,
	"TypeScript": true,
}

SupportLang defines supported language types.

Functions

func ConvertXSDtoCode

func ConvertXSDtoCode(xsdFileName, targetCodeFileName, targetLanguage string)

Types

type Config

type Config struct {
	I       string
	O       string
	Pkg     string
	Lang    string
	Version string
}

Config holds user-defined overrides and filters that are used when generating source code from an XSD document.

Jump to

Keyboard shortcuts

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