util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(bools []bool) bool

func Any

func Any(bools []bool) bool

func BoolP added in v0.2.0

func BoolP(boole bool) *bool

BoolP returns a pointer to the given bool.

func ErrResult

func ErrResult(msg, moduleName string) *types.Result

func FilterEmpty

func FilterEmpty(items []string) []string

func FloatP added in v0.2.0

func FloatP(n float64) *float64

FloatP returns a pointer to the given float64.

func IntP added in v0.2.0

func IntP(n int64) *int64

IntP returns a pointer to the given int64.

func KebabToCamel added in v0.2.0

func KebabToCamel(s string) string

KebabToCamel converts a "kebab-case" string to a "camelCase" string.

func KebabToPascal added in v0.2.0

func KebabToPascal(s string) string

KebabToPascal converts a "kebab-case" string to a "PascalCase" string.

func SnakeToCamel

func SnakeToCamel(s string) string

SnakeToCamel converts a "snake_case" string to a "camelCase" string.

func SnakeToPascal

func SnakeToPascal(s string) string

SnakeToPascal converts a "snake_case" string to a "PascalCase" string.

func StringP added in v0.2.0

func StringP(stringue string) *string

StringP returns a pointer to the given string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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