tarquote

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package `tarquote` converts quoted tar member names to UTF-8 strings.

The package only supports the default quoting style "escape". See GNU tar manual section "Quoting Member Names", <https://www.gnu.org/software/tar/manual/html_section/tar_50.html>

Index

Constants

This section is empty.

Variables

View Source
var ErrSyntax = errors.New("invalid quoted string")

Functions

func UnquoteEscape

func UnquoteEscape(s string) (string, error)

`UnquoteEscape()` unquotes the GNU tar quoting style "escape". It is based on the `strconv.Unquote()` source.

func UnquoteEscapeChar

func UnquoteEscapeChar(s string) (head byte, tail string, err error)

`UnquoteEscapeChar()` unquotes the leading character of a string that is quoted in GNU tar quoting style "escape". It is based on the `strconv.UnquoteChar()` source.

Types

This section is empty.

Jump to

Keyboard shortcuts

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