snaker

package
v0.0.0-...-3a5dd50 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package snaker provides methods to convert CamelCase names to snake_case and back.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelToSnake

func CamelToSnake(s string) string

CamelToSnake converts a given string to snake case 将输入的 CamelCase 字符串转换为 snake_case 格式

func SnakeToCamel

func SnakeToCamel(s string) string

SnakeToCamel returns a string converted from snake case to uppercase 将 snake_case 格式的字符串转换为首字母大写的 CamelCase 格式

func SnakeToCamelLower

func SnakeToCamelLower(s string) string

SnakeToCamelLower returns a string converted from snake case to lowercase 将 snake_case 格式的字符串转换为首字母小写的 camelCase 格式

Types

This section is empty.

Jump to

Keyboard shortcuts

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