parse

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInterfaceFromMap

func GetInterfaceFromMap(k string, m map[string]interface{}) (interface{}, error)

Get a interface as a regexp by a key from a map

func GetMapFromMap

func GetMapFromMap(k string, m map[string]interface{}) (map[string]interface{}, error)

Get a map by a key from a map

func GetRegexpFromMap

func GetRegexpFromMap(k string, m map[string]interface{}) (*regexp.Regexp, error)

Get a string as a regexp by a key from a map

func GetRequiredInterfaceFromMap

func GetRequiredInterfaceFromMap(k string, m map[string]interface{}) (interface{}, error)

Get a interface as a regexp by a key from a map and return an error when the key is undefined

func GetRequiredMapFromMap

func GetRequiredMapFromMap(k string, m map[string]interface{}) (map[string]interface{}, error)

Get a map by a key from a map and return an error when the key is undefined

func GetRequiredRegexpFromMap

func GetRequiredRegexpFromMap(k string, m map[string]interface{}) (*regexp.Regexp, error)

Get a string as a regexp by a key from a map and return an error when the key is undefined

func GetRequiredStringFromMap

func GetRequiredStringFromMap(k string, m map[string]interface{}) (string, error)

Get a string by a key from a map and return an error when the key is undefined

func GetStringFromMap

func GetStringFromMap(k string, m map[string]interface{}) (string, error)

Get a string by a key from a map

Types

This section is empty.

Jump to

Keyboard shortcuts

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