utils

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 12 Imported by: 55

README

Utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallerGetInfo added in v0.1.4

func CallerGetInfo(offset int) (string, string, int)

func Contains

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

Contains ...

func Content added in v0.1.5

func Content(contentOrPath string) ([]byte, error)

func EnvGet added in v0.1.3

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

func FileExists added in v0.1.6

func FileExists(path string) bool

func GoRoutineID added in v0.2.2

func GoRoutineID() uint64

func Index added in v0.2.0

func Index(items interface{}, item interface{}) int

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