config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package config provides config utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OverlayMap

func OverlayMap(data map[string]any, target any) error

OverlayMap takes in a map[string]any and will overlay the file contents on a struct. It does this through the yaml/json structs. This function thus relies on both json/yaml struct tags, and that it's values are the same.

This method is often used as dirty trick around https://github.com/golang/go/issues/48522

Types

This section is empty.

Jump to

Keyboard shortcuts

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