gonstructor icon indicating copy to clipboard operation
gonstructor copied to clipboard

A command-line tool to generate a constructor for the struct.

Results 3 gonstructor issues
Sort by recently updated
recently updated
newest added

If this command is applied for the empty struct, it raises the following error on code generating. ``` 2022/08/21 13:34:03 [error] failed to generate code: [GOWRTR-13] code formatter raises error:...

bug

example: ```go //go:generate gonstructor --type=Foo --constructorTypes=allArgs type Foo struct { Type string } ``` It outputs like the following error when it consumes the above structure: ``` 2021/07/26 23:44:37 [error]...

bug

In some code, it is preferred to return value instead of pointer. Would be good to have this option so that this tool can be used in those codebases.