Documentation
¶
Overview ¶
Example (Inspect) ¶
package main
import (
"fmt"
"github.com/ohler55/ojg/asm"
"github.com/ohler55/ojg/jp"
)
func main() {
p := asm.NewPlan([]interface{}{
"asm",
[]interface{}{"inspect", 0, "one", []interface{}{1}, "@", jp.C("src").N(1), "test", "$"},
})
root := map[string]interface{}{
"src": []interface{}{1, int64(2), 3},
}
if err := p.Execute(root); err != nil {
fmt.Println(err.Error())
}
}
Output: one: [1] {"src":[1,2,3]} test: { "src": [ 1, 2, 3 ] }
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Source Files
¶
- and.go
- append.go
- array.go
- asm.go
- at.go
- bool.go
- cond.go
- del.go
- delall.go
- dif.go
- each.go
- equal.go
- float.go
- fn.go
- get.go
- getall.go
- gt.go
- gte.go
- include.go
- inspect.go
- int.go
- join.go
- list.go
- lt.go
- lte.go
- map.go
- mod.go
- neq.go
- not.go
- nth.go
- null.go
- num.go
- or.go
- plan.go
- product.go
- quote.go
- quotient.go
- replace.go
- reverse.go
- root.go
- set.go
- setall.go
- size.go
- sort.go
- split.go
- string.go
- substr.go
- sum.go
- time.go
- title.go
- tolower.go
- toupper.go
- trim.go
- zone.go
Click to show internal directories.
Click to hide internal directories.