utils

package
v3.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Escape

func Escape(s string) string

Escape returns a copy of s with all "\t\r\n\\ escaped

func EscapeAll

func EscapeAll(ss ...string) (ess []string)

EscapeAll returns the elements of ss escaped

func EscapeRune

func EscapeRune(r rune) string

EscapeRune returns r escaped if in set: "\t\r\n\\

func StripEscape

func StripEscape(s string) (res string)

StripEscape returns a copy of s with string literal escape sequences replaced by their escape characters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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