stringz

package
v0.0.0-...-0662e00 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayContains

func ArrayContains(haystack []string, needle string) bool

func ArrayNotContains

func ArrayNotContains(haystack []string, needle string) bool

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 PascalWords

func PascalWords(words []string) string

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