Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultStringIfEmpty ¶
func GenerateSlug ¶
func GenerateUserSlug ¶
GenerateUserSlug as follows: in case user email begins with a digit, 20230123@acme.org the returned user slug is `u2023123_acme_org`, otherwise removes all the non-alpha numeric characters from the provided email and returns an _ separated slug. For eg: "$john-doe@acme.org" returns "johndoe_acme_org"
func Slugify ¶
func Slugify(str string, options SlugifyOptions) string
Types ¶
type SlugifyOptions ¶
Click to show internal directories.
Click to hide internal directories.