convert

package
v0.1.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeJSONWithMap

func MergeJSONWithMap(source, appendix interface{}) interface{}

MergeJSONWithMap accepts interface (effectively, JSON) and a map and merges them together. Source map keys are being overwritten by appendix keys if they overlap. nolint:gocyclo

func SliceToMap

func SliceToMap(path []string, value interface{}) map[string]interface{}

SliceToMap converts string slice into map that can be encoded into JSON.

Types

This section is empty.

Jump to

Keyboard shortcuts

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