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". This is used in invitation service to create relations between user email and invitation.
func Slugify ¶
func Slugify(str string, options SlugifyOptions) string
Types ¶
type SlugifyOptions ¶
Click to show internal directories.
Click to hide internal directories.