Commit 26fa2fa
committed
docs(gin): clarify v5 history and AdaptiveBucketCount=0 disable sentinel
- Version comment now notes v5 was never released; the in-tree v5
shape was iterated before the wire format was finalised in v6
and v5 payloads are always rejected on decode. Addresses item #4.
- WithAdaptiveBucketCount godoc now explains the asymmetry between
the option (rejects 0) and the validate() path (accepts 0 as the
disable sentinel for struct-literal callers). validate() also
carries an inline comment explaining why 0 is permitted there.
Addresses item #5.1 parent 6ca1640 commit 26fa2fa
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
412 | 414 | | |
413 | 415 | | |
414 | 416 | | |
415 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
416 | 421 | | |
417 | 422 | | |
418 | 423 | | |
| |||
479 | 484 | | |
480 | 485 | | |
481 | 486 | | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
482 | 492 | | |
483 | 493 | | |
484 | 494 | | |
| |||
0 commit comments