utils

package module
v0.1.2 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 for usage

Includes

  • env
  • log

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

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

Contains ...

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

type Environment

type Environment struct{}

func GetEnvironment

func GetEnvironment() *Environment

func NewEnvironment

func NewEnvironment() *Environment

func (*Environment) Get

func (e *Environment) Get(key string, defaultValue interface{}) interface{}

Jump to

Keyboard shortcuts

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