Documentation ¶
Index ¶
- func FloatOrNull(n float64) sql.NullFloat64
- func IntOrNull(n int64) sql.NullInt64
- func NewSecure(isDevelopment bool) *secure.Secure
- func ParseBearerToken(r *http.Request) ([]byte, error)
- func PositiveFloatOrNull(n float64) sql.NullFloat64
- func PositiveIntOrNull(n int64) sql.NullInt64
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FloatOrNull ¶
func FloatOrNull(n float64) sql.NullFloat64
FloatOrNull returns properly configured sql.NullFloat64
func ParseBearerToken ¶
ParseBearerToken parses Bearer token from Authorization header
func PositiveFloatOrNull ¶
func PositiveFloatOrNull(n float64) sql.NullFloat64
PositiveFloatOrNull returns properly configured sql.NullFloat64 for a positive number
func PositiveIntOrNull ¶
PositiveIntOrNull returns properly configured sql.NullInt64 for a positive number
func SpaceDelimitedStringNotGreater ¶
SpaceDelimitedStringNotGreater returns true if the first string is the same as the second string or does not contain any substring not contained in the second string (when split by space)
func StringInSlice ¶
StringInSlice is a function similar to "x in y" Python construct
func StringOrNull ¶
func StringOrNull(str string) sql.NullString
StringOrNull returns properly configured sql.NullString
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.