stringlist

package
v0.0.0-...-ab76b58 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringList

type StringList struct {
	// contains filtered or unexported fields
}

StringList is set of string methods for slice

func New

func New(capacity int) *StringList

func (*StringList) Add

func (sl *StringList) Add(row string)

func (*StringList) AddFrom

func (sl *StringList) AddFrom(list Strings)

func (*StringList) AddRange

func (sl *StringList) AddRange(rn ...string)

func (*StringList) AddRows

func (sl *StringList) AddRows(rows []string)

func (*StringList) FmtAdd

func (sl *StringList) FmtAdd(row string, a ...interface{})

func (*StringList) Join

func (sl *StringList) Join(sep string) string

func (*StringList) Len

func (sl *StringList) Len() int

func (*StringList) ReplaceAt

func (sl *StringList) ReplaceAt(index int, row string) error

func (*StringList) RowAt

func (sl *StringList) RowAt(index int) (string, error)

func (*StringList) Rows

func (sl *StringList) Rows() []string

func (*StringList) SetLineSep

func (sl *StringList) SetLineSep(sep string)

func (*StringList) Text

func (sl *StringList) Text() string

type Strings

type Strings interface {
	Rows() []string
}

Jump to

Keyboard shortcuts

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