mirror of
https://github.com/labstack/echo.git
synced 2025-03-25 21:38:56 +02:00
Minor formatting/changes
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
48c42e7b90
commit
85e2816cf3
@ -25,10 +25,10 @@ type (
|
||||
Context interface {
|
||||
context.Context
|
||||
|
||||
// Context returns `net/context.Context`.
|
||||
// Context returns `context.Context`.
|
||||
Context() context.Context
|
||||
|
||||
// SetContext sets `net/context.Context`.
|
||||
// SetContext sets `context.Context`.
|
||||
SetContext(context.Context)
|
||||
|
||||
// Request returns `engine.Request` interface.
|
||||
|
@ -342,7 +342,8 @@ func TestContextEmbedded(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestContextStore(t *testing.T) {
|
||||
c := new(echoContext)
|
||||
var c Context
|
||||
c = new(echoContext)
|
||||
c.Set("name", "Jon Snow")
|
||||
assert.Equal(t, "Jon Snow", c.Get("name"))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user