ErrLookup › TheAlgorithms/Go
TheAlgorithms/Go
Algorithms and Data Structures implemented in Go for beginners, following best practices. · Go · 272 source files
Analyzed at 5ba447ec5f on 2026-09-02. 82 documented errors.
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| failed to Encrypt | validation | error | rsa, encryption, go |
| failed to Decrypt | validation | error | rsa, decryption, go |
| no text to encrypt | validation | error | transposition, cipher, go, empty-input |
| missing Key | validation | error | transposition, cipher, go, missing-key |
| not a valid binary string | validation | error | conversion, binary, go, input-validation |
| binary number must be in range 0 to 2^(31-1) | validation | error | conversion, binary, overflow, go |
| integer must have +ve value | validation | error | conversion, binary, go, negative-number |
| input string is empty | validation | error | conversion, hexadecimal, go, empty-input |
| invalid hexadecimal string: | validation | error | conversion, hexadecimal, go, input-validation |
| invalid character in hexadecimal string: | validation | error | conversion, hexadecimal, go, input-validation |
| integer must be between 1 and 3999 | validation | error | |
| invalid roman numeral | validation | error | |
| negative weight cycle present | validation | error | |
| coloring: not all vertices of graph are colored | validation | error | |
| coloring: same colors of neighbouring vertex | validation | error | |
| arguments must be positive | validation | error | |
| input argument must be non-negative integer | validation | error | |
| mismatched dimensions | validation | error | |
| arguments cannot be zero | validation | error | |
| matrices are not compatible for addition | validation | error | |
| Matrix rows and columns must equal in order to find the dete | validation | error | matrix, determinant, dimension-mismatch, go |
| rows have different numbers of columns | validation | error | matrix, jagged-slice, validation, go |
| index out of range | validation | error | matrix, out-of-range, bounds-check, go |
| index out of bounds | validation | error | matrix, out-of-bounds, bounds-check, go |
| matrices cannot be multiplied: column count of the first mat | validation | error | matrix, multiplication, dimension-mismatch, go |
| negative dimensions are not allowed | validation | error | matrix, submatrix, negative-index, go |
| submatrix dimensions exceed matrix bounds | validation | error | matrix, submatrix, out-of-bounds, go |
| matrices are not compatible for subtraction | validation | error | matrix, subtraction, dimension-mismatch, go |
| empty slice provided | validation | warning | math, empty-slice, sentinel-error, go |
| integer overflow | validation | error | math, integer-overflow, int64, modular-arithmetic, go |
| negative Exponent provided | validation | error | go, math, modular-arithmetic, invalid-input |
| no Modular Inverse exists | validation | error | go, math, modular-arithmetic, modular-inverse |
| factorization failed | validation | warning | go, math, factorization, probabilistic-algorithm |
| target not found in array | validation | warning | go, search, not-found, invalid-input |
| populationNum must be bigger than selectionNum | validation | error | go, genetic-algorithm, configuration, invalid-input |
| character not available in charmap at position: %v | validation | error | genetic-algorithm, validation, strings |
| strings must have a same length | validation | error | hamming-distance, strings, validation |
| pattern was not found in the input string | validation | warning | string-search, sentinel-error, not-found |
| Invalid isogram order provided | validation | error | isogram, enum-validation, strings |
| Cannot contain numbers or symbols | validation | error | isogram, input-validation, strings |
| size must be greater than 0 | validation | error | go, validation, data-structures, circular-queue |
| queue is full | validation | error | go, data-structures, circular-queue, overflow |
| queue is empty | validation | warning | go, data-structures, circular-queue, underflow |
ErrEmptyDequeue DoublyEnded queue is empty, so can't perform this operation | error_code | warning | go, data-structures, deque, sentinel-error, underflow |
| index out of range | validation | error | go, data-structures, dynamic-array, bounds-check, index-out-of-range |
| less func is necessary | validation | error | go, data-structures, heap, nil-check, constructor-validation |
| left boundary must smaller than right | validation | error | go, data-structures, linked-list, bounds-check, argument-validation |
| left boundary starts from the first node | validation | error | go, data-structures, linked-list, bounds-check, off-by-one |
| right boundary cannot be greater than the length of the link | validation | error | go, data-structures, linked-list, bounds-check, index-out-of-range |
| provided size %d cannot be negative | validation | error | |
| provided size %d is too small to use to slice string %q of l | validation | error | |
| provided string %q should only contain latin characters | validation | error | |
| %q contains same character %q | validation | error | |
| len(key): %d must be as long as size squared: %d | validation | error | |
| failed encipher: %w | validation | error | |
| failed decipher: %w | validation | error | |
| %q does not exist in keys | validation | error | |
| the size of "chars" must be even | validation | error | |
| %c does not exist in characters | validation | error | |
ErrNoTextToEncrypt %w: cannot encrypt a text, %q, ending with the placeholder char %q | error_code | error | |
| huffman coding: HuffTree : calling method with empty list of | validation | error | |
| input string is empty | validation | error | |
| invalid hexadecimal string | validation | error | |
| invalid character in hexadecimal string: %c | validation | error | |
| can't have a negative n-th catalan number | error_code | error | |
ErrInvalidPosition invalid position in subset | error_code | error | |
ErrNegativeSum negative sum is not allowed | error_code | error | |
| x must be < n - given values are x=%d, n=%d | validation | error | |
| interval boundaries should be finite numbers | validation | error | go, math, ternary-search, input-validation |
| dequeue is empty we got an error | validation | error | go, queue, data-structure, empty-collection |
| error queue is empty | validation | error | go, queue, data-structure, empty-collection |
| stack list is empty | validation | error | go, stack, data-structure, empty-collection |
| panic(err) | panic | critical | go, crypto, dsa, panic, random-generation |
| BTree maxKeys cannot be zero | panic | critical | panic, btree, invalid-argument |
| Must be >= 3 keys | panic | critical | panic, btree, invalid-argument |
| node has too few keys | panic | error | panic, btree, invariant-violation |
| node has too many keys | panic | error | panic, btree, invariant-violation |
| Called InsertNonFull() with a full node | panic | error | panic, btree, precondition-failed |
| deleting out of bounds key | panic | error | panic, btree, out-of-range |
| cannot merge when leaf node is parent | panic | error | panic, btree, invalid-operation |
| nodes should not have less than the minimum number of keys | panic | error | panic, btree, invariant-violation |
| cannot delete key from node with minimum number of keys | panic | error | panic, btree, invariant-violation |