package
0.0.0-20181026173911-eca9d0580304
Repository: https://github.com/lavab/api.git
Documentation: pkg.go.dev
# Functions
FileExists is a stupid little wrapper of os.Stat that checks whether a file exists.
GetAlgorithmName returns algorithm's name depending on its ID.
HoursFromNowString returns time.Now + n hours in string format.
JSONResponse writes JSON to an http.ResponseWriter with the corresponding status code.
No description provided by the author
ParseRequest takes the input body from the passed request and tries to unmarshal it into data.
No description provided by the author
StringToTime returns a time.Time object from a RFC3339-encoded string.
TimeNowString returns time.Now + UTC + Format(RFC3339).
# Variables
ErrInvalidContentType is returned by ParseRequest if it can't unmarshal it into the passed struct.