https://github.com/adamslevy/reflect2go
Package reflect2go generates the Go code for a given reflect.Type.
https://github.com/adamslevy/reflect2go
Last synced: about 2 months ago
JSON representation
Package reflect2go generates the Go code for a given reflect.Type.
- Host: GitHub
- URL: https://github.com/adamslevy/reflect2go
- Owner: AdamSLevy
- License: mit
- Created: 2020-07-19T22:42:50.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-19T22:51:13.000Z (almost 5 years ago)
- Last Synced: 2025-03-17T22:13:21.464Z (2 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# package reflect2go
[](https://godoc.org/github.com/AdamSLevy/reflect2go)
[](https://goreportcard.com/report/github.com/AdamSLevy/reflect2go)
[](https://travis-ci.org/AdamSLevy/reflect2go)
[](https://coveralls.io/github/AdamSLevy/reflect2go?branch=master)Package reflect2go generates the Go code for a given reflect.Type.
This is useful when you want to generate the Go code for a dynamically
defined type, like with reflect.StructOf.An example use case is a program that updates or manipulates the tags on the
fields of an existing struct.