escape

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package url parses URLs and implements query escaping.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path

func Path(s string) string

Path escapes the string so it can be safely used as a URL path.

func PathTo added in v0.11.2

func PathTo(s string, sb *stringutils.Builder)

func Query

func Query(s string) string

Query escapes the string so it can be safely placed inside a URL query.

func QueryTo added in v0.11.2

func QueryTo(s string, sb *stringutils.Builder)

func Unescape added in v0.11.6

func Unescape(s string) string

func UnescapeNameTo added in v0.11.7

func UnescapeNameTo(s string, sb *strings.Builder) (name string, nameTag string)

unescape unescapes a string; the mode specifies which section of the URL string is being unescaped.

func UnescapeTo added in v0.11.7

func UnescapeTo(s string, sb *strings.Builder) string

unescape unescapes a string; the mode specifies which section of the URL string is being unescaped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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