# Functions
Checksum creates a unique CRC32 checksum from a string.
ElapsedTimeSince returns the difference between t and now.
Fingerprint creates a unique ID (MD5) from a string.
GetJSON querys a url for an expected JSON struct.
IncT increments a timstamp (in seconds) by m minutes.
PostJSON posts a JSON object to a given URL.
PrettyPrintJSON prints a struct to STDOUT nicely.
PrintJSON formats a struct into a JSON string.
PutJSON posts a JSON object to a given URL (HTTP PUT).
Random returns a random number between 0 .
RandomPlusMinus returns a random number between -max .
RandomToken generates a random token similar to a to a RFC 4122 UID.
RequestLogger is used to print the GIN raw request message body.
ShortUUID returns a short (6 bytes) UID.
SimpleUUID generates a random UUID according to RFC 4122, without any dashes.
StringToTime converts a string with a date/time into a timestamp.
Timestamp returns the curent time in seconds UTC.
TimestampNano returns the curent time in miliseconds UTC.
TimestampToHour retuns the hour of the day for the timestamp.
TimestampToUTC converts a timestamp to UTC timestamp.
TimestampToWeekday retuns the day of the week for the timestamp.
UUID generates a random UUID according to RFC 4122.
ValueWithDefault returns the value of a default if empty.