config

package
v0.65.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleField

func HandleField(value interface{}, targetType reflect.Kind) (interface{}, error)

HandleField will check if the given value is a string in the form of '{{xxx}}' where 'xxx' is the name of an environment variable. When that format is found, the environment variable will be fetched and the value converted into the given kind (string, int, float64 or bool) If the environment variable doesn't exist or the value cannot be converted, an error is returned. Otherwise the original value is returned (if not a string or not in the '{{xxx}}' format)

Types

This section is empty.

Jump to

Keyboard shortcuts

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