util

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbbreviateUUID added in v0.3.0

func AbbreviateUUID(id string) string

AbbreviateUUID returns a shortened representation of a UUID suitable for text output. When the value is not a UUID, the original value is returned unchanged.

func CheckError

func CheckError(err error)

func GenerateSlug added in v0.1.2

func GenerateSlug(title string) string

GenerateSlug converts a title to a URL-friendly slug This matches the Konnect server-side slugify implementation Example: "My API Document" -> "my-api-document"

func InitDir

func InitDir(path string, mode fs.FileMode) error

InitDir initializes a directory with the given mode

func IsValidUUID added in v0.1.3

func IsValidUUID(s string) bool

IsValidUUID checks if a string is a valid UUID format. It validates the standard 8-4-4-4-12 hexadecimal pattern with dashes.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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