Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublishOutputType ¶
func PublishOutputType( outputType OutputType, writer io.Writer, packageName string, declaredTypes []interfaces.IDefinitionDeclaration) error
func Register ¶
func Register(outputType OutputType, publish IPublish)
Types ¶
type ExportParams ¶
type ExportParams struct { OutputStream io.Writer PackageName string DeclaredTypes []interfaces.IDefinitionDeclaration }
type IPublish ¶
type IPublish interface {
Export(params ExportParams) error
}
func HasOutputType ¶
func HasOutputType(outputType OutputType) (IPublish, error)
type OutputType ¶
type OutputType int
const ( Unknown OutputType = iota Json Go )
func ToOutputType ¶
func ToOutputType(s string) OutputType
Click to show internal directories.
Click to hide internal directories.