mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-16 04:26:11 +03:00
14 lines
188 B
Go
14 lines
188 B
Go
package gin
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func CreateTestContext(w http.ResponseWriter) (c *Context, r *Engine) {
|
|
r = New()
|
|
c = r.allocateContext()
|
|
c.reset()
|
|
c.writermem.reset(w)
|
|
return
|
|
}
|