Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JqDefaultCache = func() *JqCache { if jqDefaultCacheInstance == nil { jqDefaultCacheInstance = NewJqCache() } return jqDefaultCacheInstance }
Functions ¶
Types ¶
type Jq ¶
High level API for libjq.
Jq has this options: - cache - library path
func (*Jq) WithLibPath ¶
type JqCache ¶
type JqCache struct {
StateCache map[string]*libjq.JqState
// contains filtered or unexported fields
}
func NewJqCache ¶
func NewJqCache() *JqCache
func (*JqCache) TeardownAll ¶
func (jc *JqCache) TeardownAll()
type JqProgram ¶
func (*JqProgram) Cached ¶
Cached set cached flag so next call to Run will put compiled program to cache.
func (*JqProgram) Precompile ¶
Precompile can be used to compile a program and store jq state in cache. Method returns error in case of syntax error.
Click to show internal directories.
Click to hide internal directories.