# Functions
https://stackoverflow.com/questions/21060945/simple-way-to-copy-a-file Copy copies the contents of the file at srcpath to a regular file at dstpath.
No description provided by the author
FileLink creates hard link, if destination exists and force is true, it will remove the destination before linking.
No description provided by the author
No description provided by the author
No description provided by the author
QueryBool retrieves a boolean param from the gin request querystring.
QueryDefaultInt retrieves an integer param from the gin request querystring defaults to def argument if not found.
No description provided by the author
QueryInt retrieves an integer param from the gin request querystring.
QueryParamBool retrieves a boolean param from the gin request querystring.
No description provided by the author
No description provided by the author
QueryParamInt retrieves an integer param from the gin request querystring.
No description provided by the author
QueryParamString retrieves a string param from the gin request querystring.
No description provided by the author
QueryString retrieves a string param from the gin request querystring.
No description provided by the author
No description provided by the author
No description provided by the author
WithTimeout runs a delegate function with a timeout,
Example: Wait for a channel
if value, ok := WithTimeout(func()interface{}{return <- inbox}, time.Second); ok { // returned } else { // didn't return }
Example: To send to a channel
_, ok := WithTimeout(func()interface{}{outbox <- myValue; return nil}, time.Second) if !ok { // didn't send }.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
stolen from gin gonic H is a shortcut for map[string]any.