str

package
v0.0.0-...-0b81c02 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package str provides string manipulation utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(x []string, s string) bool

Contains reports whether x contains s.

func FoldDup

func FoldDup(list []string) (string, string)

FoldDup reports a pair of strings from the list that are equal according to strings.EqualFold. It returns "", "" if there are no such strings.

func SplitQuotedFields

func SplitQuotedFields(s string) ([]string, error)

SplitQuotedFields splits s into a list of fields, allowing single or double quotes around elements. There is no unescaping or other processing within quoted fields.

func StringList

func StringList(args ...interface{}) []string

StringList flattens its arguments into a single []string. Each argument in args must have type string or []string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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