loader

package
v0.0.0-...-f290db4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASTLoader

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

func New

func New(packages []string, logger log15.Logger) *ASTLoader

func (*ASTLoader) Load

func (l *ASTLoader) Load() ([]Package, error)

type Field

type Field struct {
	Name         string
	Doc          string
	Anonymous    bool
	JSONRequired bool
	JSONProperty string
	Type         types.Type
	TypeName     string
}

type Package

type Package struct {
	Path  string
	Types []Type
	Doc   string
}

type StructTag

type StructTag struct {
	Name  string
	Value string
}

func (StructTag) String

func (t StructTag) String() string

type StructTags

type StructTags []StructTag

func ParseStructTags

func ParseStructTags(tag string) (StructTags, error)

ParseStructTags returns the full set of fields in a struct tag in the order they appear in the struct tag.

func (StructTags) Has

func (tags StructTags) Has(name string) bool

func (StructTags) String

func (tags StructTags) String() string

type Type

type Type struct {
	Name           string
	Package        string
	Fields         []Field
	Doc            string
	GenerateClient bool
	Namespaced     bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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