Command gencodec generates marshaling methods for Go struct types.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Felix Lange cbfa5be5a8 remove outdated documentation in README 8 years ago
internal remove `optional:"true"` tag, add `gencodec:"required"` in its place 8 years ago
vendor use go/loader to load type-checked packages 8 years ago
LICENSE initial commit 8 years ago
README.md remove outdated documentation in README 8 years ago
genmethod.go remove `optional:"true"` tag, add `gencodec:"required"` in its place 8 years ago
main.go remove `optional:"true"` tag, add `gencodec:"required"` in its place 8 years ago
main_test.go remove `optional:"true"` tag, add `gencodec:"required"` in its place 8 years ago
typeutil.go recognize named map and slice types 8 years ago

README.md

Command gencodec generates marshaling methods for Go struct types.

The generated methods add features which json and other marshaling packages cannot offer.

gencodec -dir . -type MyType -formats json,yaml,toml -out mytype_json.go

See the documentation for more details.