naming

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelToSnake

func CamelToSnake(s string) string

CamelToSnake converts a CamelCase string to snake_case. Consecutive uppercase letters (acronyms) are kept together: "ID" → "id", "UserID" → "user_id", "CreatedAt" → "created_at".

func SnakeToCamel

func SnakeToCamel(s string) string

SnakeToCamel converts a snake_case string to CamelCase. Common acronyms are fully uppercased: "user_id" → "UserID", "created_at" → "CreatedAt", "id" → "ID".

Types

This section is empty.

Jump to

Keyboard shortcuts

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