varsdir

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VarsInfo

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

VarsInfo contains custom variables in a statement.

func ExtractVarsInfo

func ExtractVarsInfo(stmt *infos.StmtInfo) *VarsInfo

ExtractVarsInfo extracts custom var information from a statement or nil if not exists.

func (*VarsInfo) Has

func (info *VarsInfo) Has(name string) bool

Has returns true if the named var exists. It returns false if info is nil or not exists.

func (*VarsInfo) Valid

func (info *VarsInfo) Valid() bool

Valid returns true if info != nil

func (*VarsInfo) Value

func (info *VarsInfo) Value(name string) string

Value returns the named var's value. It returns "" if info is nil or not exists or the value is just "".

Jump to

Keyboard shortcuts

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