config

package
v0.0.0-...-fc1e567 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package config contains some helpers for configuration of lovely

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBoolParam

func GetBoolParam(name string, defaultVal string) bool

GetBoolParam returns a bool, coerced from GetStringParam's value or the defaultVal if that fails

func GetStringListParam

func GetStringListParam(name string, defaultVal string, separator rune) ([]string, error)

GetStringListParam returns a string array from the first available configuration source it can find or the default value listified if that fails. The separator is used to separate list items

func GetStringParam

func GetStringParam(name string, defaultVal string) string

GetStringParam returns a string from the first available configuration source it can find or the defaultVal if that fails

Types

This section is empty.

Jump to

Keyboard shortcuts

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