go-xmlstruct
goverter
go-xmlstruct | goverter | |
---|---|---|
3 | 3 | |
63 | 442 | |
- | - | |
6.4 | 8.9 | |
16 days ago | 22 days ago | |
Go | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-xmlstruct
-
Newbie: I have a big xml file, the content is much nested tags and what I need to do is adding a field in a very nested tag in this file. One “not elegant” way is to make thousands of structs to parse the file. Do you guys have a simple solution for a task like that.
Check out https://github.com/twpayne/go-xmlstruct.
- Go-xmlstruct: generate Go structs from example XML documents
- go-xmlstruct: generate Go structs from multiple XML documents, with accurate types
goverter
-
copygen: Generate type-to-type and field-to-field struct code without reflection or dependencies (391x faster than copier)
Cool! Have you seen https://github.com/jmattheis/goverter ? I'm curious as to the pros and cons between the two.
-
goverter: Generate type-safe Go converters by simply defining an interface.
Not directly, but you can define a custom implementation for the whole struct, see f.ex. https://github.com/jmattheis/goverter/blob/main/example/errors/input.go
What are some alternatives?
goderive - Derives and generates mundane golang functions that you do not want to maintain yourself
GoWrap - GoWrap is a command line tool for generating decorators for Go interfaces
gotype - Golang source code parsing, usage like reflect package
copygen - Go generator to copy values from type to type and fields from struct to struct (copier without reflection). Generate any code based on types.
jennifer - Jennifer is a code generator for Go
straf - Convert Golang Struct To GraphQL Object On The Fly
typeregistry - create type dynamically in Golang
generis - Versatile Go code generator.
go-enum - An enum generator for go
go-xray - Helpers for making the use of reflection easier
faker - Random fake data and struct generator for Go.
yaml-sucks - YAML sucks.