util

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Util

type Util struct {
	// contains filtered or unexported fields
}

Util describes the utilities package.

func New

func New() *Util

New creates and returns a new utilities instance.

func (*Util) GetCaseOfString

func (u *Util) GetCaseOfString(initialValue, convertToCase string) string

GetCaseOfString converts a given string to the desired format based on provided case option.

func (*Util) GetValueCount

func (u *Util) GetValueCount(toPlural bool, initialValue string) string

GetValueCount converts a string to either pluran or singular.

Jump to

Keyboard shortcuts

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