fjl / gencodec

Command gencodec generates marshaling methods for Go struct types.
MIT License
55 stars 27 forks source link

How to use gencodec commond? #7

Closed peekpi closed 5 years ago

peekpi commented 6 years ago

What is input?

default
fjl commented 5 years ago

You need to run gencodec in a directory containing your Go files. If you want to generate methods for MyType, run it in the package directory where MyType is defined.