utils

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64EncodeIfNot

func Base64EncodeIfNot(data string) string

Base64EncodeIfNot encodes data if the input isn't already encoded using base64.StdEncoding.EncodeToString. If the input is already base64 encoded, return the original input unchanged.

func ExpandStringSlice

func ExpandStringSlice(input []interface{}) *[]string

func FlattenStringSlice

func FlattenStringSlice(input *[]string) []interface{}

func IoCloseAndLogError

func IoCloseAndLogError(c io.Closer, message string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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