super-graph/core/consts.go

15 lines
207 B
Go
Raw Permalink Normal View History

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
}