maps

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

nolint:exhaustive

nolint

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expand added in v1.4.0

func Expand(flatMap map[string]any, opts ...option) any

func Flatten added in v1.4.0

func Flatten(value any, opts ...option) map[string]any

func MergeMaps

func MergeMaps[T1 comparable, T2 any](m1 map[T1]T2, m2 map[T1]T2) map[T1]T2

*

  • MergeMaps merges two maps of the same type into a new map.
  • If m1 and m2 contain the same key, the value will be get from m2. *
  • Parameters:
  • - m1: the first map to merge
  • - m2: the second map to merge *
  • Returns:
  • A new map containing all key-value pairs from both input maps.

func WithPrefix added in v1.4.0

func WithPrefix(prefix string) option

func WithSep added in v1.4.0

func WithSep(sep string) option

Types

This section is empty.

Jump to

Keyboard shortcuts

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