package internal

import "github.com/peterbourgon/ff/v3/internal"

Package internal provides private helpers used by various module packages.

Index

Functions

func TraverseMap

func TraverseMap(m map[string]any, delimiter string, set func(name, value string) error) error

TraverseMap recursively walks the given map, calling set for each value. If the value is a slice, set is called for each element of the slice. The keys of nested maps are joined with the given delimiter.

Source Files

doc.go traverse_map.go

Version
v3.4.0 (latest)
Published
Jul 20, 2023
Platform
linux/amd64
Imports
3 packages
Last checked
1 week ago

Tools for package owners.