Documentation ¶ Index ¶ func CalculateBeginEnd(n, limit, offset int) (int, int, bool) func QueryDuration(query url.Values, key string, defaultValue time.Duration) time.Duration func QueryInt(query url.Values, key string, defaultValue int) int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CalculateBeginEnd ¶ func CalculateBeginEnd(n, limit, offset int) (int, int, bool) func QueryDuration ¶ func QueryDuration(query url.Values, key string, defaultValue time.Duration) time.Duration func QueryInt ¶ func QueryInt(query url.Values, key string, defaultValue int) int Types ¶ This section is empty. Source Files ¶ View all Source files utils.go Click to show internal directories. Click to hide internal directories.