looker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagQuery  = "query"
	TagHeader = "header"
	TagJson   = "json"
	TagPath   = "path"
)

Variables

This section is empty.

Functions

func EncodeGob

func EncodeGob(output string, pkg *Package) error

Types

type Field

type Field struct {
	Name     string
	BaseType string
	TagName  string
	TagValue string
}

type Fields

type Fields []Field

func LookAtField

func LookAtField(ft reflect.StructField) Fields

func LookAtFields

func LookAtFields(st reflect.Type) Fields

type Package

type Package struct {
	Path       string
	Parameters []StructElement
}

func LookAtParameters

func LookAtParameters(pkgPath string, prms []reflect.Type) *Package

func Reflect

func Reflect(importPath string, symbols []string) (*Package, error)

func (*Package) Name

func (pkg *Package) Name() string

type StructElement

type StructElement struct {
	UserType string
	Fields   Fields
}

func LookAtParameter

func LookAtParameter(at reflect.Type) StructElement

Jump to

Keyboard shortcuts

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