textutil

package
v3.0.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelToSnake

func CamelToSnake(s string) string

CamelToSnake converts a camelCase string to snake_case.

func Pluralize

func Pluralize(s string) string

Pluralize returns the English plural of the given word. It handles common suffixes: consonant+y → ies, sibilants → es, and falls back to appending s.

func ToCamelCase

func ToCamelCase(s string) string

ToCamelCase converts a string to camelCase.

From https://stackoverflow.com/questions/70083837/how-to-convert-a-string-to-camelcase-in-go

Types

This section is empty.

Jump to

Keyboard shortcuts

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