errors.go from canyonroad/agentsh
// Source: https://github.com/canyonroad/agentsh | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package credsub
import "errors"
// ErrLengthMismatch is returned by Table.Add when the length of the
// fake byte slice does not equal the length of the real byte slice.
// Length preservation is required for in-place byte rewriting and to
// avoid recomputing Content-Length at substitution time.
var ErrLengthMismatch = errors.New("credsub: fake and real must have equal length")
// ErrEmptyValue is returned by Table.Add when either the fake or real
// slice is zero-length. A zero-length pattern would match every
// position in any body and is never a valid credential.
var ErrEmptyVa
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key