escape

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 3

README

Escape

Golang string escaping library.

Currently only supports JSON using the "escape.JSON(string) string" function. Maps directly to the same unction calls used by "json.Marshal" to encode strings.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(s string) string

JSON will escape the string provided into a JSON-like format, respecting all escaping. This will return the string value already in quotes. Acts like (and copied from) 'json.Marshal' on a string value.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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