arrays

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringArray

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

func LoadFromFile

func LoadFromFile(filename string) (array *StringArray, err error)

func (*StringArray) AppendItem

func (a *StringArray) AppendItem(line string) *StringArray

func (*StringArray) FindByLine

func (a *StringArray) FindByLine(finder func(line string) bool) (lineNumber int, lineContent string, err error)

func (StringArray) IndexOfPrefix

func (a StringArray) IndexOfPrefix(prefix string) int

func (*StringArray) RemoveItem

func (a *StringArray) RemoveItem(index int) *StringArray

func (*StringArray) SaveToFile

func (a *StringArray) SaveToFile(filename string) error

func (*StringArray) UpdateItem

func (a *StringArray) UpdateItem(lineNo int, line string) *StringArray

Jump to

Keyboard shortcuts

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