haste

package module
v0.0.0-...-5d5b370 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 5 Imported by: 1

README

haste

GoDoc

Requirements
  • Go 1.13+
  • Go Modules
Installation
$ go get github.com/markbates/haste/cmd/haste

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayType

type ArrayType struct {
	*ast.ArrayType
	// contains filtered or unexported fields
}

func (*ArrayType) HastyLen

func (a *ArrayType) HastyLen() string

func (*ArrayType) HastyType

func (a *ArrayType) HastyType() string

func (*ArrayType) String

func (a *ArrayType) String() string

type ChanType

type ChanType struct {
	*ast.ChanType
	// contains filtered or unexported fields
}

func (*ChanType) HastyType

func (a *ChanType) HastyType() string

func (*ChanType) String

func (a *ChanType) String() string

type Ellipsis

type Ellipsis struct {
	*ast.Ellipsis
	// contains filtered or unexported fields
}

func (*Ellipsis) HastyType

func (s *Ellipsis) HastyType() string

func (*Ellipsis) String

func (s *Ellipsis) String() string

type Field

type Field struct {
	*ast.Field
	// contains filtered or unexported fields
}

func NewField

func NewField(f *ast.Field) *Field

func (*Field) HastyName

func (f *Field) HastyName() string

ctx args

func (*Field) HastyNames

func (f *Field) HastyNames() []string

[]string{"ctx"} []string{"args"}

func (*Field) HastyType

func (f *Field) HastyType() string

func (*Field) String

func (f *Field) String() string

type Fields

type Fields []*Field

type FuncDecl

type FuncDecl struct {
	*ast.FuncDecl
	// contains filtered or unexported fields
}

func NewFuncDecl

func NewFuncDecl(f *ast.FuncDecl) *FuncDecl

func (*FuncDecl) HastyName

func (f *FuncDecl) HastyName() string

func (*FuncDecl) HastyParams

func (f *FuncDecl) HastyParams() Fields

[]{context.Context, []string}

func (*FuncDecl) HastyReceivers

func (f *FuncDecl) HastyReceivers() Fields

func (*FuncDecl) HastyReturns

func (f *FuncDecl) HastyReturns() Fields

func (*FuncDecl) MatchString

func (f *FuncDecl) MatchString() string

func (*FuncDecl) String

func (f *FuncDecl) String() string

type FuncDecls

type FuncDecls []*FuncDecl

func (FuncDecls) Find

func (fns FuncDecls) Find(s string) (*FuncDecl, error)

type FuncType

type FuncType struct {
	*ast.FuncType
	// contains filtered or unexported fields
}

func (*FuncType) HastyParams

func (f *FuncType) HastyParams() Fields

func (*FuncType) HastyReturns

func (f *FuncType) HastyReturns() Fields

func (*FuncType) String

func (f *FuncType) String() string

type Haste

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

func New

func New(s ...string) (*Haste, error)

func (*Haste) Funcs

func (h *Haste) Funcs() FuncDecls

type Ident

type Ident struct {
	*ast.Ident
}

func NewIdent

func NewIdent(name string) *Ident

type InterfaceType

type InterfaceType struct {
	*ast.InterfaceType
	// contains filtered or unexported fields
}

func (*InterfaceType) HastyMethods

func (i *InterfaceType) HastyMethods() Fields

func (*InterfaceType) String

func (i *InterfaceType) String() string

type MapType

type MapType struct {
	*ast.MapType
	// contains filtered or unexported fields
}

func (*MapType) HastyKey

func (a *MapType) HastyKey() string

func (*MapType) HastyValue

func (a *MapType) HastyValue() string

func (*MapType) String

func (a *MapType) String() string

type SelectorExpr

type SelectorExpr struct {
	*ast.SelectorExpr
	// contains filtered or unexported fields
}

func (*SelectorExpr) HastySelector

func (s *SelectorExpr) HastySelector() string

func (*SelectorExpr) HastyType

func (s *SelectorExpr) HastyType() string

func (*SelectorExpr) String

func (s *SelectorExpr) String() string

type StarExpr

type StarExpr struct {
	*ast.StarExpr
	// contains filtered or unexported fields
}

func (*StarExpr) HastyName

func (s *StarExpr) HastyName() string

func (*StarExpr) HastyType

func (s *StarExpr) HastyType() string

func (*StarExpr) String

func (s *StarExpr) String() string

Directories

Path Synopsis
cmd
internal
ref

Jump to

Keyboard shortcuts

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