data

package
v0.0.0-...-14f90b6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHumanReadableSlug

func GenerateHumanReadableSlug() func(string) string

GenerateHumanReadableSlug will return a slug for given title - defined as:

"Human readable slug is a short hyphenated slug that aligns with the title of the page, is clear and unambiguous, but is free from articles (a, an, the) and other superfluous words"

It can be edited manually removing superflous words before published.

func GenerateResourceId

func GenerateResourceId() func(string) string

GenerateResourceId should return "short, unique, non-incremental ID" - defined as: [A-Za-z0-9]{8}

func GenerateUUID

func GenerateUUID() func(string) string

Types

type Generator

type Generator func(string) string

Jump to

Keyboard shortcuts

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