fields

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 2 Imported by: 0

README

Slice a string into args while combining single, double, or backslash escaped spaced arguments, e.g.:

	fields.New(`echo hello\ beautiful\ world`) == []string{
		"echo",
		"hello beautiful world",
	}
	fields.New(`echo "hello 'beautiful world'"`) == []string{
		"echo",
		"hello 'beautiful world'",
	}
	fields.New(`echo 'hello \"beautiful world\"'`) == []string{
		"echo",
		`hello \"beautiful world\"`,
	}

© 2015-2016 Platina Systems, Inc. All rights reserved. Use of this source code is governed by this BSD-style LICENSE.

Documentation

Overview

Slice a string into args while combining single, double, or backslash escaped spaced arguments, e.g.:

echo hello\ beautiful\ world
echo "hello 'beautiful world'"
echo 'hello \"beautiful world\"'

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(s string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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