cfgutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendUnique

func AppendUnique(list []string, item string) []string

AppendUnique appends item to list only if it is not already present.

func Bool

func Bool(cfg map[string]any, key string, fallback bool) bool

Bool reads a bool from a plugin config map with a fallback default.

func Int

func Int(cfg map[string]any, key string, fallback int) int

Int reads an int from a plugin config map with a fallback default.

func String

func String(cfg map[string]any, key, fallback string) string

String reads a string from a plugin config map with a fallback default.

func StringSlice

func StringSlice(cfg map[string]any, key string) []string

StringSlice reads a string slice from a plugin config map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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