parent
28daa77389
commit
6b30aded32
@ -1,3 +1,3 @@
|
|||||||
package gotrace_id
|
package gotrace_id
|
||||||
|
|
||||||
const Version = "1.0.0"
|
const Version = "1.0.1"
|
||||||
|
@ -1,16 +1,11 @@
|
|||||||
package gotrace_id
|
package gotrace_id
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestContext(t *testing.T) {
|
func TestContext(t *testing.T) {
|
||||||
|
ctx := CustomTraceIdContext()
|
||||||
ctx := context.Background()
|
|
||||||
t.Log(ctx)
|
t.Log(ctx)
|
||||||
|
t.Log(GetTraceIdContext(ctx))
|
||||||
ctx = context.WithValue(ctx, "k1", "测试")
|
|
||||||
|
|
||||||
t.Log()
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue