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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?