gojson icon indicating copy to clipboard operation
gojson copied to clipboard

Add flag for struct name

Open ChimeraCoder opened this issue 11 years ago • 2 comments

Currently all generated structs have the name TestStruct. A flag (optional?) should be added to specify the struct name. I propose -struct, though perhaps -name might work.

ChimeraCoder avatar Mar 03 '13 00:03 ChimeraCoder

As of 9d7c991, the -struct flag has been added (and works properly) if -file is also specified explicitly. That is,

gojson -struct Foo -file json_example.json

and

gojson -file json_example.json -struct Foo

both work, but

gojson json_example.json -struct Foo

still uses 'TestStruct' as the name of the struct.

ChimeraCoder avatar Mar 04 '13 01:03 ChimeraCoder

You fixed this six years ago. It's time to close it. :)

bhechinger avatar Mar 05 '19 19:03 bhechinger