cases

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Camel

func Camel(s string) string

Camel converts the given name into a camelCase.

user_info  => userInfo
full_name  => fullName
user_id    => userID
full-admin => fullAdmin

func Pascal

func Pascal(s string) string

Pascal converts the given name into a PascalCase.

user_info 	=> UserInfo
full_name 	=> FullName
user_id   	=> UserID
full-admin	=> FullAdmin

func Snake

func Snake(s string) string

Snake converts the given struct or field name into a snake_case.

Username => username
FullName => full_name
HTTPCode => 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