一. 关于deadline函数返回的布尔值OK
ctx, cancel := context.WithTimeout(context.Background(), time.Second*3)
deadTime, ok := ctx.Deadline()
其中的OK指的是当前的ctx是否设置了过期时间,所以上面的代码中ok是true,返回dateTime变量是ctx的到期时间
ctx, cancel := context.Background()
deadTime, ok := ctx.Deadline()
这里的OK则返回false,因为并没有过期时间