extractor

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeLocation added in v1.0.1

func CodeLocation() string

CodeLocation just call this function and you will get func name, file path, and line number of code

func FromMap

func FromMap(data interface{}, path string) (result interface{})

FromMap extract value from map[string]interface{}, path for define nested json: key, key.key, key.key.key, and so on example path: foo for single key or without nested, foo.bar for 1 nested, foo.bar.baz for 2 nested, and so on

Types

This section is empty.

Jump to

Keyboard shortcuts

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