Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesRange ¶
BytesRange checks if starting index `startIdx`, ending index `endIdx` and len(b) passes sanity checks: * 0 <= startIdx * startIdx <= endIdx * endIdx < len(b)
Types ¶
type ErrEndGreaterThanLength ¶
ErrEndGreaterThanLength means `endIdx` is greater or equal to the length.
func (*ErrEndGreaterThanLength) Error ¶
func (err *ErrEndGreaterThanLength) Error() string
type ErrEndLessThanStart ¶
ErrEndLessThanStart means `endIdx` value is less than `startIdx` value
func (*ErrEndLessThanStart) Error ¶
func (err *ErrEndLessThanStart) Error() string
type ErrStartLessThanZero ¶
type ErrStartLessThanZero struct {
StartIdx int
}
ErrStartLessThanZero means `startIdx` has negative value
func (*ErrStartLessThanZero) Error ¶
func (err *ErrStartLessThanZero) Error() string
Click to show internal directories.
Click to hide internal directories.