Documentation ¶
Overview ¶
Package uritemplates is a level 4 implementation of RFC 6570 (URI Template, http://tools.ietf.org/html/rfc6570).
To use uritemplates, parse a template string and expand it with a value map:
template, _ := uritemplates.Parse("https://api.github.com/repos{/user,repo}") values := make(map[string]interface{}) values["user"] = "jtacoma" values["repo"] = "uritemplates" expanded, _ := template.ExpandString(values) fmt.Printf(expanded)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.