15 lines
207 B
Go
15 lines
207 B
Go
package core
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
)
|
|
|
|
var (
|
|
errNotFound = errors.New("not found in prepared statements")
|
|
)
|
|
|
|
func keyExists(ct context.Context, key contextkey) bool {
|
|
return ct.Value(key) != nil
|
|
}
|