Versions in this module Expand all Collapse all v2 v2.1.0 May 2, 2026 Changes in this version + func SetValidators(w http.ResponseWriter, validators Validators) + func WriteNotModified(w http.ResponseWriter, validators Validators) + func WritePreconditionFailed(w http.ResponseWriter) + type Decision struct + NotModified bool + PreconditionFailed bool + Status int + func EvaluateRead(r *http.Request, validators Validators) Decision + func EvaluateWrite(r *http.Request, validators Validators) Decision + type ETag string + func HashETag(data []byte) ETag + func ParseETag(value string) (ETag, error) + func StrongETag(value string) ETag + func WeakETag(value string) ETag + func (e ETag) IsWeak() bool + func (e ETag) String() string + type Validators struct + ETag ETag + LastModified time.Time