naming

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 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

Overview

Package naming converts names between the styles a generated project needs and finds the closest valid name when a spec has a typo.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Distance

func Distance(a, b string) int

func IsSQLIdentifier

func IsSQLIdentifier(s string) bool

func Kebab

func Kebab(s string) string

func LowerCamel

func LowerCamel(s string) string

func Pascal

func Pascal(s string) string

func Plural

func Plural(snake string) string

func Snake

func Snake(s string) string

func Suggest

func Suggest(input string, candidates []string) string

Suggest returns the candidate closest to input, or "" when even the best match is too far off to be a typo. Longer words tolerate a few more mistakes.

func Words

func Words(s string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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