shlex

package
v3.0.0-...-66753ca Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package shlex is a simplified command-line shell-like argument parser.

shlex will parse for example

start --append="foobar foobaz" --nogood 'food'

into the appropriate argvs to start the command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Argv

func Argv(s string) []string

Argv splits a command line according to usual simple shell rules.

Argv was written from the spec of Grub quoting at https://www.gnu.org/software/grub/manual/grub/grub.html#Quoting except that the escaping of newline is not supported

Types

This section is empty.

Jump to

Keyboard shortcuts

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