Documentation ¶
Index ¶
- func ParseVar(input string, key string) string
- func PrettyStruct(data interface{}) string
- type Context
- func (c *Context) Get(s string) (bool, []string)
- func (ctx *Context) GetChild(name string) (bool, *Context)
- func (ctx *Context) GetChildren() []*Context
- func (c *Context) GetSingleValue(s string) string
- func (ctx *Context) GetVaryDict(name string) (bool, []string)
- func (ctx *Context) GetVaryDicts() []VaryDict
- func (ctx *Context) VaryDictContains(name string, value string) (bool, string)
- func (ctx *Context) VaryDictEndsWith(name string, value string) (bool, string)
- func (ctx *Context) VaryDictHas(name string, value string) bool
- func (ctx *Context) VaryDictMatch(name string, regex *regexp.Regexp) (bool, [][]string)
- func (ctx *Context) VaryDictStartsWith(name string, value string) (bool, string)
- type Token
- type VaryDict
- func (vary *VaryDict) VaryDictContains(value string) (bool, string)
- func (vary VaryDict) VaryDictEndsWith(value string) (bool, string)
- func (vary *VaryDict) VaryDictGetVar(value string) string
- func (vary *VaryDict) VaryDictHas(value string) bool
- func (vary *VaryDict) VaryDictMatch(regex *regexp.Regexp) (bool, [][]string)
- func (vary *VaryDict) VaryDictStartsWith(value string) (bool, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrettyStruct ¶
func PrettyStruct(data interface{}) string
Types ¶
type Context ¶
type Context struct { Parent *Context `json:"-"` Children []*Context `json:"children"` Name string `json:"name"` VaryDict []VaryDict `json:"vary_dict"` }
func OpenAndParse ¶
func (*Context) GetChildren ¶
func (*Context) GetSingleValue ¶
func (*Context) GetVaryDicts ¶
func (*Context) VaryDictContains ¶
func (*Context) VaryDictEndsWith ¶
func (*Context) VaryDictMatch ¶
type VaryDict ¶
func (*VaryDict) VaryDictContains ¶
func (VaryDict) VaryDictEndsWith ¶
func (*VaryDict) VaryDictGetVar ¶
func (*VaryDict) VaryDictHas ¶
func (*VaryDict) VaryDictMatch ¶
Click to show internal directories.
Click to hide internal directories.