Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v1.18.7 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 15 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnvVars added in v1.16.0

func LoadEnvVars(relativePath string) error

LoadEnvVars loads environment variables from a .env file and overrides existing ones This will override any existing environment variables with values from the .env file

func NewStringSet added in v1.1.1

func NewStringSet(values ...string) map[string]struct{}

func StartHTTPServer

func StartHTTPServer(port int, ready chan bool)

Types

type CommonConfig

type CommonConfig struct {
	ComponentType string
	ComponentName string
	Operations    map[string]struct{}
}

func (CommonConfig) CopyMap

func (cc CommonConfig) CopyMap(config map[string]string) map[string]string

func (CommonConfig) HasOperation

func (cc CommonConfig) HasOperation(operation string) bool

Jump to

Keyboard shortcuts

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