argdir

package
v0.0.0-...-f860bb7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgInfo

type ArgInfo argDirective

ArgInfo contains single wrapper function argument information in a statement.

func (*ArgInfo) ArgName

func (info *ArgInfo) ArgName() string

ArgName returns the argument's name.

func (*ArgInfo) ArgType

func (info *ArgInfo) ArgType() string

ArgType returns the argument's type.

type ArgsInfo

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

ArgsInfo contains wrapper function arguments information in a statement.

func ExtractArgsInfo

func ExtractArgsInfo(stmt *infos.StmtInfo) *ArgsInfo

ExtractArgsInfo extracts arg information from a statement or nil if not exists.

func (*ArgsInfo) Args

func (info *ArgsInfo) Args() []*ArgInfo

Args returns all ArgInfo in the statement.

func (*ArgsInfo) NumArg

func (info *ArgsInfo) NumArg() int

NumArg returns the number of arguments in the statement. It returns 0 if info is nil or there is no args at all.

func (*ArgsInfo) Valid

func (info *ArgsInfo) Valid() bool

Valid returns true if info != nil.

Jump to

Keyboard shortcuts

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