strutils

package
v0.0.0-...-2b35e24 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultString

func GetDefaultString(str, def string) string

GetDefaultString returns str if it is not an empty string or def otherwise

func SnakeCaseString

func SnakeCaseString(in string) string

SnakeCaseString convert the given string to snake case following the Golang format: acronyms are converted to lower-case and preceded by an underscore.

func TitleString

func TitleString(in string) string

TitleString convert the given camelCase string to a title string. eg. MyHTMLData => My HTML Data

Types

This section is empty.

Jump to

Keyboard shortcuts

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