shell

package
v4.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgsQuoted

func ArgsQuoted(a []string) (quoted string)

ArgsQuoted concatenates a slice of string shell args, quoting each item

func Escape

func Escape(s string) string

Escape performs escaping of shell double quotes, backticks and $ characters. Does not escape single quotes - apply EscapeSingleQuotes separately for this.

func EscapeDoubleQuotes

func EscapeDoubleQuotes(s string) string

EscapeQuotes performs shell escaping of double quotes only

func EscapeSingleQuotes

func EscapeSingleQuotes(s string) string

EscapeSingleQuotes performs shell escaping of single quotes only

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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