util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 4 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 PrintResult added in v0.3.2

func PrintResult(result *types.Result)

func ResultFailedChanged added in v0.3.0

func ResultFailedChanged(module, err string) *types.Result

func ResultFailedUnchanged added in v0.3.0

func ResultFailedUnchanged(module, err string) *types.Result

func ResultSuceededChanged added in v0.3.0

func ResultSuceededChanged(module string) *types.Result

func ResultSuceededUnchanged added in v0.3.0

func ResultSuceededUnchanged(module string) *types.Result

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