strescape

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CannonicalizeNL

func CannonicalizeNL(val string) string

CannonicalizeNL converts all newline char sequences to \n. Additionally, it trims all empty newlines from the right of the string.

func Content

func Content(s string) string

Content returns s escaped from chars that don't belong in content.

func Nick

func Nick(s string) string

Nick returns s escaped from chars that don't don't belong in a nick.

func PathElement

func PathElement(s string) string

PathElement returns s escaped from chars that modify a path element.

func ResourcesPath added in v0.1.8

func ResourcesPath(path []string) string

ResourcesPath escapes and joins the specified path into a single string.

func ResourcesPathElements added in v0.1.8

func ResourcesPathElements(path []string) []string

ResourcesPathElements escapes each individual path element.

Types

This section is empty.

Jump to

Keyboard shortcuts

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