-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config option for generating embedded structs from interfaces
- Loading branch information
Showing
12 changed files
with
458 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package out_interface_field_methods | ||
|
||
type ExistingType struct { | ||
Name *string `json:"name"` | ||
Enum *ExistingEnum `json:"enum"` | ||
Int ExistingInterface `json:"int"` | ||
Existing *MissingTypeNullable `json:"existing"` | ||
} | ||
|
||
type ExistingModel struct { | ||
Name string | ||
Enum ExistingEnum | ||
Int ExistingInterface | ||
} | ||
|
||
type ExistingInput struct { | ||
Name string | ||
Enum ExistingEnum | ||
Int ExistingInterface | ||
} | ||
|
||
type ExistingEnum string | ||
|
||
type ExistingInterface interface { | ||
IsExistingInterface() | ||
} | ||
|
||
type ExistingUnion interface { | ||
IsExistingUnion() | ||
} |
Oops, something went wrong.