Documentation ¶
Index ¶
- Constants
- Variables
- func IsEmail(s string) bool
- func IsInt(s string) (int, bool)
- func IsIntBetween(s string, min int, max int) (int, bool)
- func IsLength(s string, min int, max int) bool
- func IsNull(s string) bool
- func IsNullString(s sql.NullString) bool
- func IsTimezone(zone string) bool
- func ToNullFloat64(f float64) sql.NullFloat64
- func ToNullString(s string) sql.NullString
- func ToNullTime(t time.Time) pq.NullTime
Constants ¶
View Source
const (
EmailPattern = "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"
)
Variables ¶
View Source
var (
EmailRegEx = regexp.MustCompile(EmailPattern)
)
Functions ¶
func IsNullString ¶
func IsNullString(s sql.NullString) bool
func IsTimezone ¶
func ToNullFloat64 ¶
func ToNullFloat64(f float64) sql.NullFloat64
func ToNullString ¶
func ToNullString(s string) sql.NullString
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.