Documentation ¶
Overview ¶
Package shortener implements saving/extracting URL to/from database and encoding/decoding URL database id to BASE62 formatted string.
Index ¶
Constants ¶
View Source
const EncShift = 1024 * 1024
EncShift is added to URL's id before encoding it to BASE62.
Variables ¶
View Source
var ( DecodeErr = errors.New("code is incorrect") EncShiftErr = errors.New("code is less than encoding shift") )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.