strcase

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Caser

type Caser struct {
	// contains filtered or unexported fields
}

Converter holds the configuration for acronyms

func NewCaser

func NewCaser(options ...CaserOption) *Caser

NewCaser creates a new Converter with given acronyms

func (*Caser) ToCamel

func (c *Caser) ToCamel(s string) string

ToCamel converts a string to CamelCase

func (*Caser) ToKebab

func (c *Caser) ToKebab(s string) string

ToKebab converts a string to kebab-case

func (*Caser) ToLowerCamel

func (c *Caser) ToLowerCamel(s string) string

ToLowerCamel converts a string to lowerCamelCase

type CaserOption

type CaserOption func(*Caser)

Converter holds the configuration for acronyms

func WithAcronyms

func WithAcronyms(acronyms ...string) CaserOption

Jump to

Keyboard shortcuts

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