This document provides detailed instructions for installing xsd2proto.
- Go 1.21 or later
Install xsd2proto using Go modules:
go install github.com/i-icc/xsd2proto/cmd/xsd2proto@latestAfter installation, verify that xsd2proto is working correctly:
# Check version
xsd2proto --version
# View help
xsd2proto --helpTo remove xsd2proto:
rm $(go env GOPATH)/bin/xsd2protoIf you encounter the error:
package github.com/i-icc/xsd2proto is not a main package
Make sure you're installing from the correct path that includes /cmd/xsd2proto:
# Incorrect (will fail)
go install github.com/i-icc/xsd2proto@latest
# Correct
go install github.com/i-icc/xsd2proto/cmd/xsd2proto@latestIf you experience issues with cached modules:
go clean -modcache
GOPROXY=direct go install github.com/i-icc/xsd2proto/cmd/xsd2proto@latest