# Functions
BasicAuthDecode decode basic auth string.
CreateTimeLimitCode create a time-limited code.
EllipsisString returns a truncated short string, it appends '...' in the end of the length of string is too large.
EncodeSha256 string to sha256 hex value.
EntryIcon returns the octicon class for displaying files/directories.
FileSize calculates the file size and generate user-friendly string.
FormatNumberSI format a number.
Int64sToStrings converts a slice of int64 to a slice of string.
NaturalSortLess compares two strings so that they could be sorted in natural order.
SetupGiteaRoot Sets GITEA_ROOT if it is not already set and returns the value.
ShortSha is basically just truncating.
StringsToInt64s converts a slice of string to a slice of int64.
TruncateString returns a truncated string with given limit, it returns input string if length is not reached limit.
VerifyTimeLimitCode verify time limit code.
# Constants
TimeLimitCodeLength default value for time limit code.