idents

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(goIdentifier string, format IdentFormat) string

Convert will take a given identifier and convert it to the specified format.

Types

type IdentFormat

type IdentFormat int
const (
	CamelCase          IdentFormat = iota // camelCase
	PascalCase                            // PascalCase
	SnakeCase                             // snake_case
	ScreamingSnakeCase                    // SCREAMING_SNAKE_CASE
	KebabCase                             // kebab-case
)

Jump to

Keyboard shortcuts

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