Documentation ¶
Index ¶
- Variables
- func AllEqual[T comparable](values ...T) bool
- func Clamp(a, b, c int) int
- func EqualDomains(u ...string) bool
- func Has[T comparable](needle T, haystack []T) bool
- func IMax(a, b int) int
- func IMin(a, b int) int
- func IsAlnumRune(r rune) bool
- func IsJapanese(s string) bool
- func SendMail(ctx context.Context, to []string, subject, contents string)
- func Trim(s string, maxLen int) string
- func ValidHost(host string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var IsAlnum = regexp.MustCompile(`^[[:alnum:]]+$`).MatchString
View Source
var IsAlpha = regexp.MustCompile(`^[[:alpha:]]+$`).MatchString
Functions ¶
func AllEqual ¶
func AllEqual[T comparable](values ...T) bool
func EqualDomains ¶
func Has ¶
func Has[T comparable](needle T, haystack []T) bool
func IsAlnumRune ¶
func IsJapanese ¶
IsJapanese returns true if any of the characters inside of the string are within Japanese unicode ranges.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.