words

package module
v0.0.0-...-f6d2d04 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 4 Imported by: 0

README

akimimi/words

Go Reference Build Status Coverage Status Go Report Card

Words provide some word transfer functions in golang.

  1. Camelize converts the slashed words into Camel-Case words
  2. Capitalize converts the first letter in a word to uppercase
  3. Modelize converts string in to Camel-Case words with the last word singularized
  4. Tableize converts string in to slashed lower case words with the last word pluralized

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendString

func AppendString(slice, data []string) []string

AppendString appends a string slice to the end of data which is also a string slice.

func Camelize

func Camelize(s string) string

Camelize converts the slashed words into Camel-Case words

func Capitalize

func Capitalize(s string) string

Capitalize converts the first letter in a word to uppercase

func Lowercase

func Lowercase(s string) string

Lowercase converts the first letter in a word to lowercase

func Modelize

func Modelize(s string) string

Modelize converts string in to Camel-Case words with the last word singularized

func Tableize

func Tableize(s string) string

Tableize converts string in to slashed lower case words with the last word pluralized

func Words

func Words(s string) []string

Words split string into words by white space, '_', and upper case letter

Types

This section is empty.

Jump to

Keyboard shortcuts

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