Versions in this module Expand all Collapse all v1 v1.0.1 Nov 1, 2017 v1.0.0 Nov 1, 2017 Changes in this version + const DateFormat + const RFC3339Mili + var ErrNoMatchFound = errors.New("No match found") + func FloatOrNull(n float64) sql.NullFloat64 + func FormatDate(timestamp *time.Time) string + func FormatTime(timestamp *time.Time) string + func GetCurrentURL(r *http.Request) string + func IntOrNull(n int64) sql.NullInt64 + func NewSecure(isDevelopment bool) *secure.Secure + func ParseBearerToken(r *http.Request) ([]byte, error) + func ParseDate(timestamp string) (*time.Time, error) + func ParseTimestamp(timestamp string) (*time.Time, error) + func PositiveFloatOrNull(n float64) sql.NullFloat64 + func PositiveIntOrNull(n int64) sql.NullInt64 + func RegexExtractMatch(in, regularExpression, name string) (string, error) + func RegexExtractMatches(in, regExp string, names ...string) (map[string]string, error) + func SpaceDelimitedStringNotGreater(first, second string) bool + func StringInSlice(a string, list []string) bool + func StringOrNull(str string) sql.NullString + func TimeOrNull(t *time.Time) pq.NullTime + func ValidateEmail(email string) bool