Added prefix flag, and changed file name output accordingly. Also
changed parser package ParsePackage() to take prefix and updated skip conditional as needed. Last paragraph of main package comment was updated, along with the second to last paragraph of readme. Due to confusion about import paths, the parser package import path was left pointing to original repo with the hope that the author will pull these changes. Otherwise, the import path will need to be changed back to the forked repo to work properly.
This commit is contained in:
parent
e9a38094fb
commit
02f6b2afc6
3 changed files with 13 additions and 8 deletions
|
@ -71,6 +71,7 @@ source files that represent a single Go package.
|
|||
The `-type` flag accepts a comma-separated list of types so a single run can
|
||||
generate methods for multiple types. The default output file is t_jsonenums.go,
|
||||
where t is the lower-cased name of the first type listed. The suffix can be
|
||||
overridden with the `-suffix` flag.
|
||||
overridden with the `-suffix` flag and a prefix may be added with the `-prefix`
|
||||
flag.
|
||||
|
||||
This is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue