uritemplates

URI Templates (RFC 6570) implemented in Go

  • Owner: jtacoma/uritemplates
  • Platform:
  • License:: BSD 3-Clause "New" or "Revised" License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

uritemplates

--
import "github.com/jtacoma/uritemplates"

Build Status Coverage Status

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.Expand(values)
fmt.Printf(expanded)

License

Use of this source code is governed by a BSD-style license that can be found in
the LICENSE file.

Main metrics

Overview
Name With Ownerjtacoma/uritemplates
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:BSD 3-Clause "New" or "Revised" License
所有者活动
Created At2012-08-31 19:21:19
Pushed At2017-12-28 03:21:46
Last Commit At2016-07-02 11:35:54
Release Count2
Last Release Namev1.0.0 (Posted on 2016-07-02 11:38:52)
First Release Name0.1 (Posted on )
用户参与
Stargazers Count70
Watchers Count5
Fork Count14
Commits Count37
Has Issues Enabled
Issues Count6
Issue Open Count1
Pull Requests Count3
Pull Requests Open Count1
Pull Requests Close Count1
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private