model

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenModel

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

GenModel is the generating generating

func NewGenModel

func NewGenModel(api *spec.API, buf *srcgen.File, pkgpath []string) *GenModel

func (*GenModel) ConvertFrom

func (g *GenModel) ConvertFrom(in, out string, typ *spec.Type) error

func (*GenModel) ConvertFromMulti added in v0.2.7

func (g *GenModel) ConvertFromMulti(in, out string, typ *spec.Type, explode bool) error

func (*GenModel) ConvertTo

func (g *GenModel) ConvertTo(in, out string, typ *spec.Type) error

func (*GenModel) ConvertToMulti

func (g *GenModel) ConvertToMulti(in, out string, typ *spec.Type, explode bool) error

func (*GenModel) GetPkgPath

func (g *GenModel) GetPkgPath(path string) (string, bool)

func (*GenModel) Paths

func (g *GenModel) Paths(typ *spec.Type) bool

func (*GenModel) PkgPath

func (g *GenModel) PkgPath(path string) bool

func (*GenModel) Ptr

func (g *GenModel) Ptr(typ *spec.Type) bool

func (*GenModel) PtrTypes

func (g *GenModel) PtrTypes(typ *spec.Type) (err error)

func (*GenModel) Types

func (g *GenModel) Types(typ *spec.Type) (err error)

func (*GenModel) TypesDefine

func (g *GenModel) TypesDefine(typ *spec.Type) (err error)

func (*GenModel) TypesZero

func (g *GenModel) TypesZero(typ *spec.Type) (err error)

Jump to

Keyboard shortcuts

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