util

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvOrDefault

func GetEnvOrDefault(env, def string) string

GetEnvOrDefault returns the environment variable value if set, otherwise the default value

func Jq

func Jq(input map[string]any, path string) (any, error)

Jq extracts values from a JSON-like map using a dotted path notation like the jq cli

func LoadOrGenerateCert

func LoadOrGenerateCert(certPath, keyPath string) (tls.Certificate, error)

LoadOrGenerateCert generates a self-signed certificate and private key if they do not exist at the specified paths. If the files already exist, they are loaded and returned.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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