slugger

package
v0.0.0-...-8c2001a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SlugExp        = regexp.MustCompile("^[a-z0-9-]*$")
	ReplaceSlugExp = regexp.MustCompile("[^a-z0-9]+")

	// fixme => copy all reserved words from from autoapi and other
	ColumnReservedSlugs = []string{"page", "limit", "cursor"}
)

Functions

func IsAgent

func IsAgent(value string) bool

func IsDynColumn

func IsDynColumn(value string) bool

func IsDynGroup

func IsDynGroup(value string) bool

func IsDyntable

func IsDyntable(value string) bool

func IsValidSlug

func IsValidSlug() bool

func Slugify

func Slugify(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL