IsNotModifiedError checks whether the supplied error indicates that the requested resource hasn't changed. It only returns true if the server used [NewNotModifiedError] in response to a Connect-protocol RPC made with an HTTP GET.
(err error)
| 256 | // [NewNotModifiedError] in response to a Connect-protocol RPC made with an |
| 257 | // HTTP GET. |
| 258 | func IsNotModifiedError(err error) bool { |
| 259 | return errors.Is(err, errNotModified) |
| 260 | } |
| 261 | |
| 262 | // errorf calls fmt.Errorf with the supplied template and arguments, then wraps |
| 263 | // the resulting error. |
no outgoing calls