utilx

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayContainsString

func ArrayContainsString(s *[]string, str string) bool

ArrayContainsString - check if an array of string contains a given string.

func FetchEnvVar

func FetchEnvVar(envName string) string

FetchEnvVar - fetch env var as string.

func FetchEnvVarAsInt16

func FetchEnvVarAsInt16(envName string) int16

FetchEnvVarAsInt16 - fetch env var as int16.

func FetchEnvVarAsInt64

func FetchEnvVarAsInt64(envName string) int64

FetchEnvVarAsInt64 - fetch env var as int64.

func FetchEnvVarAsTime

func FetchEnvVarAsTime(envName string, layout string) time.Time

FetchEnvVarAsTime - fetch evn var as time.

func GenerateUUID

func GenerateUUID() uuid.UUID

GenerateUUID - generate a UUID.

func RandomString

func RandomString(n int) (string, error)

RandomString - Generate a random string of a given length.

Types

This section is empty.

Directories

Path Synopsis
Package copyx provides functionality to perform deep copies of complex data structures.
Package copyx provides functionality to perform deep copies of complex data structures.

Jump to

Keyboard shortcuts

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