Documentation
¶
Index ¶
- Constants
- func AddURLSlash(url string) string
- func DefaultInt(val *int, fallback int) int
- func DefaultString(str *string, fallback string) string
- func NullGeometry(value geom.NullGeometry4326) (*geom.Geometry4326, error)
- func NullInt(value sql.NullInt32) (*int, error)
- func NullString(value sql.NullString) (*string, error)
- func NullTime(value sql.NullTime, layout string) (*string, error)
- func RandomVerificationCode() string
- func URLLocale(url, locale, defaultLocale string) string
Constants ¶
View Source
const ( RAND_MIN = 100000 RAND_MAX = 999999 )
Variables ¶
This section is empty.
Functions ¶
func AddURLSlash ¶
func DefaultInt ¶
func DefaultString ¶
func NullGeometry ¶
func NullGeometry(value geom.NullGeometry4326) (*geom.Geometry4326, error)
func NullString ¶
func NullString(value sql.NullString) (*string, error)
func RandomVerificationCode ¶
func RandomVerificationCode() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.