line

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package line lets you parse command line strings into arguments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arg

type Arg []ArgPart

func Parse

func Parse(line string) []Arg

func (Arg) Expand

func (arg Arg) Expand(expander func(string) (string, bool)) string

func (Arg) String

func (arg Arg) String() string

type ArgPart

type ArgPart struct {
	String    string
	CanExpand bool
}

Jump to

Keyboard shortcuts

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