README ¶ go-jsonextend Description A simple Go json parser that support defining variables in json file. Usage package main import ( "fmt" "github.com/jaksonlin/go-jsonextend" ) template:= `{"hello": "world", "name": "this is my ${name}", "age": ${age}}` variables:= {"name": "jakson", "age": 18} result, err:= jsonextend.Parse(template, variables) if err != nil { fmt.Println(err) } fmt.Println(result) Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Parse(reader io.Reader, variables map[string]interface{}) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Parse ¶ func Parse(reader io.Reader, variables map[string]interface{}) (string, error) Types ¶ This section is empty. Source Files ¶ View all Source files jsonextend.go Directories ¶ Show internal Expand all Path Synopsis ast interpreter parser tokenizer util Click to show internal directories. Click to hide internal directories.