utils

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckBoolPointer

func CheckBoolPointer(v *bool) bool

func MakeEnvFunc

func MakeEnvFunc(envKey string) func() string

func MakeEnvFuncWithDefault added in v0.9.0

func MakeEnvFuncWithDefault(envKey, defaultVal string) func() string

func Sha256Sum

func Sha256Sum[T BytesLike](data T) []byte

func Sha256SumHex

func Sha256SumHex[T BytesLike](data T) string

func ToPointer

func ToPointer[T any](v T) *T

Types

type BytesLike

type BytesLike interface{ string | []byte }

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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