xuri / xgen

XSD (XML Schema Definition) parser and Go/C/Java/Rust/TypeScript code generator
BSD 3-Clause "New" or "Revised" License
313 stars 74 forks source link

How to install?? #70

Closed xbladesub closed 1 year ago

xbladesub commented 1 year ago

What does mean go get -u -v github.com/xuri/xgen/cmd/... installation command in README?

go: go.mod file not found in current directory or any parent directory.
        'go get' is no longer supported outside a module.
        To build and install a command, use 'go install' with a version,
        like 'go install example.com/cmd@latest'
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.

go install github.com/xuri/xgen@latest :

go: downloading github.com/xuri/xgen v0.0.0-20230225022412-aec4e71118ac
package github.com/xuri/xgen is not a main package
xuri commented 1 year ago

Thanks for your issue. I have update the executables installing command in the README. If you're using Go 1.17 and later, please installing executables with following command:

go install github.com/xuri/xgen/cmd/xgen@latest