metaleap / go-xsd

[stable since 2013] a lib for loading XML Schema Definition (XSD) files ➜ plus, a tool `makepkg` to code-generate from any *.xsd your Go package with all needed `struct`s to readily `xml.Unmarshal()` documents into, based on the XSD's schema definitions. NOT REALLY MAINTAINED FOR YEARS NOW: try the forks if running into issues.
http://www.reddit.com/r/golang/comments/12g6sl/is_there_a_tool_that_generates_go_source_code_for/
MIT License
216 stars 66 forks source link

Error when go get #37

Closed qburst-jerinjoseph closed 4 years ago

qburst-jerinjoseph commented 4 years ago

Showing error while running go get

go get github.com/metaleap/go-xsd

go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
        ignoring go.mod;
        see 'go help modules'
# github.com/metaleap/go-util/fs
../github.com/metaleap/go-util/fs/watcher-default.go:32:22: undefined: fsnotify.FileEvent
../github.com/metaleap/go-util/fs/watcher-default.go:64:35: undefined: fsnotify.FileEvent
../github.com/metaleap/go-util/fs/watcher-default.go:72:44: undefined: fsnotify.FileEvent
../github.com/metaleap/go-util/fs/watcher-default.go:79:18: me.Event undefined (type *Watcher has no field or method Event)
../github.com/metaleap/go-util/fs/watcher-default.go:83:21: cannot assign type func(<T>) to onEvt (type func(<T>)) in range
../github.com/metaleap/go-util/fs/watcher-default.go:97:18: me.Error undefined (type *Watcher has no field or method Error)
../github.com/metaleap/go-util/fs/watcher-default.go:119:15: me.Watch undefined (type *Watcher has no field or method Watch)
metaleap commented 4 years ago

Yeah this project has been in abandonment for years now, so no surprise there. I suggest curious / potential users to investigate the numerous forks of go-xsd out there to figure out which one is best maintained and kept up to speed with new stuff like modules etc! I wouldn't know since the need for xsd at my end was thankfully shortlived when it popped up around 8 years ago