util

package
v0.0.0-...-29b6922 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHeadersNotFound  = errors.New("can't find headers")
	ErrTableParseFailed = errors.New("unable to parse table")
)
View Source
var ErrInfoLineNotFound = errors.New("info line not found")

Functions

func GetFloat

func GetFloat(data string) (float32, error)

func GetHeadsIDs

func GetHeadsIDs(header []string, heads []string) (map[string]int, error)

func GetLineInfo

func GetLineInfo(data, prefix, lineSep string) (string, error)

func GetTrimmedFloat

func GetTrimmedFloat(data, prefix, suffix string) (float32, error)

func ParseTable

func ParseTable(table string, lineSep string, skipLines, maxLines int) ([][]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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