Documentation ¶
Index ¶
Constants ¶
View Source
const CategorySeparator = ":"
CategorySeparator is the string that divdes category name and value
Variables ¶
This section is empty.
Functions ¶
func NewAPI ¶
func NewAPI(mdb *mongo.Database) apis.Categories
NewAPI creates a new apiImpl object that will use the provided db
func SlugifyCategoryAndValue ¶
SlugifyCategoryAndValue converts a category+value string into a slug. The category value string should be two tokens separated by the CategorySeparator.
func SlugifyToken ¶
SlugifyToken converts a category or category value to a slug
func SplitCategoryValue ¶
SplitCategoryValue splits a combined catValue string into category and value strings. The combined string must be have a CategorySeparator.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.