escape

package module
v0.0.0-...-6ffa1c4 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 5 Imported by: 0

README

escape

Text escaping command line tool

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Escape

func Escape(text string, escaper Escaper) (string, error)

func UnEscape

func UnEscape(text string, escaper Escaper) (string, error)

Types

type Escaper

type Escaper interface {
	Name() string
	Escape(text string) (string, error)
	UnEscape(text string) (string, error)
}

type HTML

type HTML struct{}

func (HTML) Escape

func (h HTML) Escape(text string) (string, error)

func (HTML) Name

func (h HTML) Name() string

func (HTML) UnEscape

func (h HTML) UnEscape(text string) (string, error)

type JSON

type JSON struct{}

func (JSON) Escape

func (h JSON) Escape(text string) (string, error)

func (JSON) Name

func (h JSON) Name() string

func (JSON) UnEscape

func (h JSON) UnEscape(text string) (string, error)

type XML

type XML struct{}

func (XML) Escape

func (h XML) Escape(text string) (string, error)

func (XML) Name

func (h XML) Name() string

func (XML) UnEscape

func (h XML) UnEscape(text string) (string, error)

type YAML

type YAML struct{}

func (YAML) Escape

func (h YAML) Escape(text string) (string, error)

func (YAML) Name

func (h YAML) Name() string

func (YAML) UnEscape

func (h YAML) UnEscape(text string) (string, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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