texts

package
v0.0.0-...-d5d086f Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstWord

func FirstWord(line string) string

FirstWord returns the first field split with spaces not enclosed with double-quotations.

func SplitLikeShell

func SplitLikeShell(line string) [][]int

SplitLikeShell splits string with spaces not enclused with double-quotations. This version returns fields' indexes rather than themselves.

func SplitLikeShellString

func SplitLikeShellString(line string) []string

SplitLikeShellString splits s with SPACES not enclosing with double-quotations. This version returns fields themselves.

Types

This section is empty.

Jump to

Keyboard shortcuts

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