strescape

package
v0.1.6-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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