access

package
v0.0.0-...-aea69b8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 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 Access

type Access struct{}

func (Access) Describe

func (a Access) Describe() plugin.Description

func (Access) GenerateTo

func (a Access) GenerateTo(w io.Writer, env plugin.Env, typeInfo plugin.TypeInfo, opt plugin.Options) (plugin.Prerequisites, error)

type Field

type Field struct {
	Name        string
	GetFuncName string
	TypeName    string
}

type TemplateArgs

type TemplateArgs struct {
	TypeName string
	Receiver string
	Fields   []Field
}

func (*TemplateArgs) AddField

func (ta *TemplateArgs) AddField(field *ast.Field, opts *plugin.Options, t *utils.NameWithPkg) error

func (TemplateArgs) GenerateTo

func (ta TemplateArgs) GenerateTo(w io.Writer) error

Jump to

Keyboard shortcuts

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