idents

package
v1.35.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 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.

func GenerateSuggestion added in v1.9.3

func GenerateSuggestion(input string, format IdentFormat) string

GenerateSuggestion creates a suggestion for an identifier in the given format from the given input string.

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