Documentation
¶
Overview ¶
Package util should stay empty.
davecheney: #golang top tip: don't write a "utils" package, don't make a "utils" project. 2/10/16, 11:42 PM
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseTimeStrict ¶
ParseTimeStrict parses a formatted string and returns the time value it represents. The output is identical to time.Parse except it returns an error for strings that don't format to the input value.
An example where the output differs from time.Parse would be: parseTimeStrict("1/2/06", "11/31/15")
- time.Parse returns "2015-12-01 00:00:00 +0000 UTC"
- ParseTimeStrict returns an error
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.
|
Package assert provides a set of comprehensive testing tools for use with the normal Go testing system. |
Package bufferpool implements a pool of reusable auto-resizing buffers.
|
Package bufferpool implements a pool of reusable auto-resizing buffers. |
Package byteconv converts sql.RawBytes for MySQL or MariaDB to primitive types.
|
Package byteconv converts sql.RawBytes for MySQL or MariaDB to primitive types. |
Package conv - easy and safe casting from one type to another.
|
Package conv - easy and safe casting from one type to another. |
Package csjwt handles JSON web tokens.
|
Package csjwt handles JSON web tokens. |
cmd/jwt
A useful example app.
|
A useful example app. |
jwtclaim
Package jwtclaim provides claim structs and maps for convenience.
|
Package jwtclaim provides claim structs and maps for convenience. |
Package cstesting provides testing helpers
|
Package cstesting provides testing helpers |
package diff compares two strings and prints out all differences
|
package diff compares two strings and prints out all differences |
Package gzippool provides pooled gzip reader and writers.
|
Package gzippool provides pooled gzip reader and writers. |
Package hashpool implements a pool for reusable and registered hash.Hash types.
|
Package hashpool implements a pool for reusable and registered hash.Hash types. |
Package naughtystrings is a collection of strings that have a high probability of causing issues when used as user input.
|
Package naughtystrings is a collection of strings that have a high probability of causing issues when used as user input. |
package pseudo is the fake data generator, heavily inspired by forgery and ffaker Ruby gems.
|
package pseudo is the fake data generator, heavily inspired by forgery and ffaker Ruby gems. |
Package shortid enables the generation of short, unique, non-sequential and by default URL friendly Ids.
|
Package shortid enables the generation of short, unique, non-sequential and by default URL friendly Ids. |
Package slices contains functions for working on specific slice types.
|
Package slices contains functions for working on specific slice types. |
Package strs contains additional string manipulation functions.
|
Package strs contains additional string manipulation functions. |
Package translit replaces characters in a string using a huge conversion table.
|
Package translit replaces characters in a string using a huge conversion table. |
Click to show internal directories.
Click to hide internal directories.