Change tags of structures' fields in runtime without copying of data in Go. Conditional marshalling and unmarshalling.
MIT License
Package retag provides an ability to change tags of structures' fields in runtime without copying of the data. It may be helpful in next cases:
Please see examples in documentation for details.
Features:
map[struct]*struct
).The package requires go1.7+.
go get github.com/sevlyar/retag
You can use gopkg.in:
go get gopkg.in/sevlyar/retag.v0
Please see godoc.org/github.com/sevlyar/retag