format

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 8 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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