Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Components ¶
Components decodes and returns the x/y component of the given hash string
Types ¶
type ErrInvalidComps ¶
type ErrInvalidComps int
ErrInvalidComps occurs when the x-component or y-component is not in the range of 1 and 9 exclusively
func (ErrInvalidComps) Error ¶
func (e ErrInvalidComps) Error() string
type ErrInvalidHashLength ¶
type ErrInvalidHashLength int
ErrInvalidHashLength occurs when the length of blurhash is less than 6 or not equal (4 + 2 * numX * numY), where numX and numY are the number of x/y-compoments respectively
func (ErrInvalidHashLength) Error ¶
func (e ErrInvalidHashLength) Error() string
Click to show internal directories.
Click to hide internal directories.