Golib

module
v0.0.0-...-da45c02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2017 License: Apache-2.0

README

go-toolkit

收集常用的golang包

其他开源的

Directories

Path Synopsis
cache
mredis
redis 封装包 主要引用 github.com/garyburd/redigo/redis 一、自定义Pool 不用github.com/garyburd/redigo/redis包中原有的pool功能。
redis 封装包 主要引用 github.com/garyburd/redigo/redis 一、自定义Pool 不用github.com/garyburd/redigo/redis包中原有的pool功能。
curl包 func Curl(url, method string, params, header map[string]string, body []byte) (resBody map[string]interface{}, resHeader map[string][]string, responseStatus string)
curl包 func Curl(url, method string, params, header map[string]string, body []byte) (resBody map[string]interface{}, resHeader map[string][]string, responseStatus string)
client
client 包 @author cbping
client 包 @author cbping
文件操作
文件操作
core
@author cbping
@author cbping
curl
curl包 func Do(url, method string, params, header map[string]string, body []byte) (resBody map[string]interface{}, resHeader map[string][]string, responseStatus string)
curl包 func Do(url, method string, params, header map[string]string, body []byte) (resBody map[string]interface{}, resHeader map[string][]string, responseStatus string)
hook
内部钩子
内部钩子
Package httplib is used as http.Client Usage: import "github.com/astaxie//httplib" b := httplib.Post("http://.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://.me/docs/module/httplib.md
Package httplib is used as http.Client Usage: import "github.com/astaxie//httplib" b := httplib.Post("http://.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://.me/docs/module/httplib.md
把中间件和原本的路由处理器封装在一起, 先执行中间件,如果中间件没有提前结束请求, 最终会把执行权归还给原本的路由处理器。
把中间件和原本的路由处理器封装在一起, 先执行中间件,如果中间件没有提前结束请求, 最终会把执行权归还给原本的路由处理器。

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL