flat

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchMap added in v0.2.3

func BatchMap(ctx context.Context, cli *clientv3.Client, m map[string]interface{}, prefix string) error

func BatchStringFlatedMap

func BatchStringFlatedMap(ctx context.Context, cli *clientv3.Client, sfp map[string]string, prefix string) error

func FlatMap

func FlatMap(m map[string]interface{}, fp map[string]interface{}, sep string, prefix string)

FlatMap Usage fp := make(map[string]interface{}) flat.FlatMap(m, fp, "/", "" )

func KV_getAnddelete

func KV_getAnddelete(ctx context.Context, cli *clientv3.Client, key string, val string) (*clientv3.DeleteResponse, error)

func StringFlatedMap

func StringFlatedMap(fp map[string]interface{}) map[string]string

StringFlatedMap cast other type in json value to string FlatedMap

func TextSFP

func TextSFP(sfp map[string]string) strings.Builder

TextSFP turn sfp to etcd get prefix format

func UnFlatMap

func UnFlatMap(tfp string, sep string) (map[string]interface{}, error)

TODO

Types

This section is empty.

Jump to

Keyboard shortcuts

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