golang

package
v0.0.0-...-5d5dcd2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Appender

type Appender struct {
	// contains filtered or unexported fields
}

func NewAppender

func NewAppender() *Appender

func (*Appender) Line

func (a *Appender) Line(strings ...string)

func (*Appender) NewLine

func (a *Appender) NewLine()

func (*Appender) String

func (a *Appender) String() string

func (*Appender) W

func (a *Appender) W(strings ...string)

type Emitter

type Emitter struct {
	// contains filtered or unexported fields
}

func NewEmitter

func NewEmitter(rootDir string, moduleName string) *Emitter

func (*Emitter) Emit

func (g *Emitter) Emit(api *spec.API) error

func (*Emitter) Import

func (g *Emitter) Import(modName string, funcOrType string) string

func (*Emitter) ImportRef

func (g *Emitter) ImportRef(t *spec.TypeRef) string

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func NewResolve

func NewResolve(api *spec.API) *Resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve(moduleName string) error

Resolve modifies and rewrites the given api so that it can be used to generate go code. This involves also a rewrite of type names and adds idiomatic things.

Jump to

Keyboard shortcuts

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