xsd2go

module
v0.0.0-...-8e20013 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Unlicense

README

XSD2Go - Automatically generate golang xml parser based on XSD

This project is a fork of https://github.com/GoComply/xsd2go.

Usage

Run this command with variable names xsdFile, name, nsPrefix, and tmpl:

moovio_xsd2go convert \
   ${xsdFile} \
   ${goModule} \
   ${outputDir} \
   --template-name=/templates/${name}.tmpl \
   --output-file=${output} \
   --xmlns-override='my.namespace=your.namespace'

Where the first parameter is the XSD file, the second parameter is the go module and the third parameter is the output folder. The remaining parameters are optional.

Installation

go install github.com/moov-io/xsd2go/cli/moovio_xsd2go

Directories

Path Synopsis
cli
cmd
pkg
xsd

Jump to

Keyboard shortcuts

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