splitted

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: GPL-3.0 Imports: 4 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

func FromSlice

func FromSlice(slice []string) (sp Parser, err error)

func New

func New(s, sep string) (sp Parser, err error)

func NewFields

func NewFields(s string) (sp Parser, err error)

func (Parser) At

func (sp Parser) At(idx int) (s string, err error)

func (Parser) Float

func (sp Parser) Float(idx int) (ff float64, err error)

func (Parser) Idx

func (sp Parser) Idx(idx int) (s string, err error)

func (Parser) Int

func (sp Parser) Int(idx int) (ii int, err error)

func (Parser) Len

func (sp Parser) Len() (e errors.Bound)

func (Parser) ValueAt

func (p Parser) ValueAt(v Value, idx int) (err error)

type Value

type Value interface {
	Set(string) error
}

Jump to

Keyboard shortcuts

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