naming

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 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", "OAuth" → "oauth".

func SnakeToCamel

func SnakeToCamel(s string) string

SnakeToCamel converts a snake_case string to CamelCase. Common initialisms use their Go-idiomatic form: "user_id" → "UserID", "oauth_token" → "OAuthToken".

Types

This section is empty.

Jump to

Keyboard shortcuts

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