uritemplates

URI Templates (RFC 6570) implemented in Go

  • 所有者: jtacoma/uritemplates
  • 平台:
  • 许可证: BSD 3-Clause "New" or "Revised" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.

主要指标

概览
名称与所有者jtacoma/uritemplates
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证BSD 3-Clause "New" or "Revised" License
所有者活动
创建于2012-08-31 19:21:19
推送于2017-12-28 03:21:46
最后一次提交2016-07-02 11:35:54
发布数2
最新版本名称v1.0.0 (发布于 2016-07-02 11:38:52)
第一版名称0.1 (发布于 )
用户参与
星数70
关注者数5
派生数14
提交数37
已启用问题?
问题数6
打开的问题数1
拉请求数3
打开的拉请求数1
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?