stringutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kebab

func Kebab(s string) string

Kebab converts PascalCase to kebab-case (e.g., "BlogPost" -> "blog-post").

func LowerCamel

func LowerCamel(s string) string

LowerCamel converts PascalCase to camelCase (e.g., "BlogPost" -> "blogPost").

func Plural

func Plural(s string) string

Plural naively pluralizes a string.

func Pluralize

func Pluralize(word string, count int) string

Pluralize returns singular or plural form based on count.

func Snake

func Snake(s string) string

Snake converts PascalCase to snake_case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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