_rsrch/cidiface is an engineering experiment package to explore the right form for a CID. As such, it's not meant to be actually used, and could result in conflict if used. To avoid accidentally importing it (or even getting suggestions to do so), this package is moved into an "internal" folder, hinting tooling that it's not meant for external consumption.
13 lines
168 B
Go
13 lines
168 B
Go
package cid
|
|
|
|
func uvError(read int) error {
|
|
switch {
|
|
case read == 0:
|
|
return ErrVarintBuffSmall
|
|
case read < 0:
|
|
return ErrVarintTooBig
|
|
default:
|
|
return nil
|
|
}
|
|
}
|