Open xiekeyi98 opened 3 years ago
package main
import (
"context"
"fmt"
"github.com/huandu/go-tls"
)
func main() {
ctx, can := context.WithCancel(context.Background())
go func() {
defer can()
k, v := "k", "v"
tls.Set(k, tls.MakeData(v))
g, exi := tls.Get(k)
fmt.Printf("%v,[%v,%v]\n", tls.ID(), g, exi)
}()
<-ctx.Done()
}
Thanks for letting me know this. I'll take a look at it later.
go 1.17 it is relased.
And this repo will broken at the unit test.