Help us shape the future of Go! Take the 2026 Go Developer Survey

naming

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package naming converts identifiers between Go and database/file conventions. The ORM and the CLI generators share it so table names and generated files always agree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Camel

func Camel(s string) string

Camel converts "user_profile" to "userProfile".

func Kebab

func Kebab(s string) string

Kebab converts "SendReports" to "send-reports".

func Pascal

func Pascal(s string) string

Pascal converts "user_profile", "user-profile" or "userProfile" to "UserProfile".

func Plural

func Plural(s string) string

Plural applies common English rules to the last word.

func Snake

func Snake(s string) string

Snake converts "UserProfile" to "user_profile" and "HTTPCode" to "http_code".

Types

This section is empty.

Jump to

Keyboard shortcuts

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