utils

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 9 Imported by: 55

README

Utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(items interface{}, item interface{}) bool

Contains ...

func EnvGet added in v0.1.3

func EnvGet(key string, defaultValue interface{}) interface{}

func IsEmpty

func IsEmpty(v interface{}) bool

IsEmpty ...

func MapGetKeyValues

func MapGetKeyValues(s string) map[string]string

func MapToArray

func MapToArray(m map[string]string) []string

func MapToArrayWithSeparator

func MapToArrayWithSeparator(m map[string]string, s string) []string

func NewHttpClient

func NewHttpClient(timeout int, insecure bool) *http.Client

func NewHttpInsecureClient

func NewHttpInsecureClient(timeout int) *http.Client

func NewHttpSecureClient

func NewHttpSecureClient(timeout int) *http.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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