util

package
v2.0.2-dev.47 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoerceType

func CoerceType(param interface{}) ([]byte, error)

CoerceType will accept a string, []byte, or json.Marshaller type and convert it to a []byte for use and consistency in the SDK

func DeleteEmptyAndTrim

func DeleteEmptyAndTrim(s []string) []string

DeleteEmptyAndTrim removes empty strings from a slice

func SplitColon

func SplitColon(c rune) bool

SplitColon - use custom split func, on colons, instead of .Split to eliminate empty values (i.e Test,,,)

func SplitComma

func SplitComma(c rune) bool

SplitComma - use custom split func, on commas, instead of .Split to eliminate empty values (i.e Test,,,)

Types

This section is empty.

Jump to

Keyboard shortcuts

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