casing

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 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
}

func NewCaser

func NewCaser(wordCase WordCase, initialisms Initialisms) *Caser

func (*Caser) Check

func (c *Caser) Check(s string) bool

func (*Caser) To

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

type Initialisms

type Initialisms []string

type WordCase

type WordCase string
const (
	CamelCase    WordCase = "camelCase"
	PascalCase   WordCase = "PascalCase"
	SnakeCase    WordCase = "snake_case"
	KebabCase    WordCase = "kebab-case"
	GoCamelCase  WordCase = "goCamelCase"
	GoPascalCase WordCase = "GoPascalCase"
	GoSnakeCase  WordCase = "go_snake_case"
	GoKebabCase  WordCase = "go-kebab-case"
)

Jump to

Keyboard shortcuts

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