Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generated ¶
type Generated struct {
RawInterfaces,
Interfaces,
Structs,
Constructors,
Implementations,
RawCrud,
Crud,
Names []string
}
Generated is a struct containing generated code
func Convert ¶
func Convert(
other,
toConvert []map[interface{}]interface{},
rawSuffix,
interfaceSuffix,
packageName string,
) (*Generated, error)
Convert converts given maps describing schemas to go structs args:
other []map[interface{}]interface{} - maps describing schemas than
should not be converted to go structs
toConvert []map[interface{}]interface{} - maps describing schemas that
should be converted to go structs
annotationDB string - annotation added to each field in schemas
annotationObject string - annotation added to each field in objects
suffix string - suffix added to each type name
return:
- list of go interfaces as strings
- list of go structs as strings
- list of implementations of interfaces as strings
- error during execution
Source Files
¶
- converter.go
- generated.go
- inheritance.go
- schema.go
Click to show internal directories.
Click to hide internal directories.