go-httprequestpath

所属分类:Web服务器
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2024-04-05 16:09:14
上 传 者sh-1993
说明:  包httprequestpath提供了用于从http获取路径的工具。Go编程语言的请求。
(Package httprequestpath provides tools for getting the path from an http.Request, for the Go programming language.)

文件列表:
LICENSE
errors.go
go.mod
go.sum
httprequestpath.go

# go-httprequestpath Package httprequestpath provides tools for getting the __path__ from an `http.Request`, for the Go programming language. ## Documention Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-httprequestpath [![GoDoc](https://godoc.org/github.com/reiver/go-httprequestpath?status.svg)](https://godoc.org/github.com/reiver/go-httprequestpath) ## Example ``` import "github.com/reiver/go-httprequestpath" // ... path, err := httprequestpath.HTTPRequestPath(request) if nil != err { var code int = http.StatusInternalServerError var text string = http.StatusText(code) http.Error(responseWriter, text, code) return } ``` ## Import To import package **httprequestpath** use `import` code like the follownig: ``` import "github.com/reiver/go-httprequestpath" ``` ## Installation To install package **httprequestpath** do the following: ``` GOPROXY=direct go get https://github.com/reiver/go-httprequestpath ``` ## Author Package **httprequestpath** was written by [Charles Iliya Krempeaux](http://reiver.link)

近期下载者

相关文件


收藏者