Publish

package
v0.0.0-...-99bab9e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL