format

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

View Source
const (
	//CaseUpper represents case format
	CaseUpper = Case(iota)
	CaseLower
	CaseUpperCamel
	CaseLowerCamel
	CaseUpperUnderscore
	CaseLowerUnderscore
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Case

type Case int

func NewCase

func NewCase(name string) (Case, error)

NewCase create a new case for supplied name or error, supported in case insensitive form "upperCase", "upper", "u"

func (Case) Format

func (from Case) Format(text string, to Case) string

Format converts supplied text from Case to

func (Case) String

func (from Case) String() string

String return case format name

Jump to

Keyboard shortcuts

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