You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package gin_middleware
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
func TestContext(t *testing.T) {
|
|
|
|
ctx := context.Background()
|
|
t.Log(ctx)
|
|
|
|
ctx = context.WithValue(ctx, "k1", "测试")
|
|
|
|
t.Log()
|
|
}
|