util

package
v1.8.21 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package util provides a multitude of support functions to help make development easier. Use of these functions should be preferred, as it allows for easier maintenance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToStringMap

func ConvertToStringMap(data map[string]interface{}) map[string]string

ConvertToStringMap converts a map of string to interface to a map of string to json

func GetJSONString

func GetJSONString(data map[string]interface{}, field string, out *string) error

GetJSONString checks and extracts a string from data[field]. Will return an error if data[field] does not exist or is of the wrong type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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