1 Star 0 Fork 0

也许/gin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
binding
examples
ginS
json
render
testdata
vendor
.gitignore
.travis.yml
AUTHORS.md
BENCHMARKS.md
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
Makefile
README.md
auth.go
auth_test.go
benchmarks_test.go
codecov.yml
context.go
context_appengine.go
context_test.go
coverage.sh
debug.go
debug_test.go
deprecated.go
deprecated_test.go
doc.go
errors.go
errors_test.go
fs.go
gin.go
gin_integration_test.go
gin_test.go
githubapi_test.go
logger.go
logger_test.go
middleware_test.go
mode.go
mode_test.go
path.go
path_test.go
recovery.go
recovery_test.go
response_writer.go
response_writer_1.7.go
response_writer_1.8.go
response_writer_test.go
routergroup.go
routergroup_test.go
routes_test.go
test_helpers.go
tree.go
tree_test.go
utils.go
utils_test.go
wercker.yml
克隆/下载
test_helpers.go 428 Bytes
一键复制 编辑 原始数据 按行查看 历史
田欧 提交于 7年前 . Attempt to fix #1462 (#1463)
// Copyright 2017 Manu Martinez-Almeida. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.
package gin
import "net/http"
// CreateTestContext returns a fresh engine and context for testing purposes
func CreateTestContext(w http.ResponseWriter) (c *Context, r *Engine) {
r = New()
c = r.allocateContext()
c.reset()
c.writermem.reset(w)
return
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Happay-Code/gin.git
git@gitee.com:Happay-Code/gin.git
Happay-Code
gin
gin
v1.3.0

搜索帮助