utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SnakeCase

func SnakeCase(s string) string

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

func StringSliceContains

func StringSliceContains(slice []string, item string) bool

StringSliceContains check whether a string is in a slice

func StringSliceToLower

func StringSliceToLower(slice []string) []string

StringSliceToLower go through the string slice, make earch item string lower case, and return a new string slice.

func StringSliceTrim

func StringSliceTrim(slice []string, cutset string) []string

StringSliceTrim go through the string slice, trim each intem string by cutset, and return a new string slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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