namecase

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: MIT Imports: 5 Imported by: 15

README

Name case

Build Status Go Report Card GoDoc GitHub license gocover.io

Various naming styles change.

Install

go get -u -v github.com/wzshiming/namecase

Usage

ToUpperSpace all to XX YY ZZ
ToLowerSpace all to xx yy zz
ToUpperStrike all to XX-YY-ZZ
ToLowerStrike all to xx-yy-zz
ToUpperSnake all to XX_YY_ZZ
ToLowerSnake all to xx_yy_zz
ToPascal all to XxYyZz
ToCamel all to xxYyZz
ToUpperHump all to XxYyZz
ToLowerHump all to xxYyZz
ToUpperHumpInitialisms all to XxYyZzID
ToLowerHumpInitialisms all to xxYyZzID

API Documentation

License

Pouch is licensed under the MIT License. See LICENSE for the full license text.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToCamel

func ToCamel(s string) string

ToCamel to xxYyZz

func ToLowerHump

func ToLowerHump(s string) string

ToLowerHump to xxYyZz

func ToLowerHumpInitialisms

func ToLowerHumpInitialisms(s string) string

ToLowerHumpInitialisms to xxYyZzID

func ToLowerSnake

func ToLowerSnake(s string) string

ToLowerSnake to xx_yy_zz

func ToLowerSpace

func ToLowerSpace(s string) string

ToLowerSpace to xx yy zz

func ToLowerStrike

func ToLowerStrike(s string) string

ToLowerStrike to xx-yy-zz

func ToPascal

func ToPascal(s string) string

ToPascal to XxYyZz

func ToUpperHump

func ToUpperHump(s string) string

ToUpperHump to XxYyZz

func ToUpperHumpInitialisms

func ToUpperHumpInitialisms(s string) string

ToUpperHumpInitialisms to XxYyZzID

func ToUpperSnake

func ToUpperSnake(s string) string

ToUpperSnake to XX_YY_ZZ

func ToUpperSpace

func ToUpperSpace(s string) string

ToUpperSpace to XX YY ZZ

func ToUpperStrike

func ToUpperStrike(s string) string

ToUpperStrike to XX-YY-ZZ

Types

This section is empty.

Jump to

Keyboard shortcuts

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