utils

package
v0.0.0-...-6cf1bc9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeKeys

func EscapeKeys(input map[string]interface{}) map[string]interface{}

EscapeKeys is used to escape bad keys in a map. A statusDoc without escaped keys is broken.

func EscapeString

func EscapeString(s string) string

EscapeString escapes a string to be safe to store in Mongo.

func UnescapeKeys

func UnescapeKeys(input map[string]interface{}) map[string]interface{}

UnescapeKeys is used to restore escaped keys from a map to their original values.

func UnescapeString

func UnescapeString(s string) string

UnescapeString restores escaped characters from a string to their original values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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