naming

package
v0.0.0-...-c81e63a Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package naming provides text naming utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Align

func Align(s string, maxN int) string

func Concat

func Concat(a, b string, maxN int) string

func IsASCIILetter

func IsASCIILetter(c byte) bool

func IsASCIILower

func IsASCIILower(c byte) bool

func IsASCIIUpper

func IsASCIIUpper(c byte) bool

func NormalizeIdentifier

func NormalizeIdentifier(s string) string

func Singular

func Singular(s string) string

func SplitCommentLines

func SplitCommentLines(s string) []string

func StructToReceiver

func StructToReceiver(s string) string

func TableToAlias

func TableToAlias(s string) string

func TableToStruct

func TableToStruct(s string) string

func ToASCIILower

func ToASCIILower(c byte) byte

func ToASCIIUpper

func ToASCIIUpper(c byte) byte

func ToCamelCase

func ToCamelCase(s string) string

func ToSnakeCase

func ToSnakeCase(s string) string

Types

type Naming

type Naming struct {
	// contains filtered or unexported fields
}

func New

func New(initialisms ...string) *Naming

func (*Naming) ColumnToField

func (n *Naming) ColumnToField(s string) string

Jump to

Keyboard shortcuts

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