parser

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	Headers []string
	Rows    [][]string
}

Table holds table data.

type TableOutput

type TableOutput struct {
	Table Table
	Lines []string
}

TableOutput returns table output.

type TableSpace

type TableSpace struct{}

TableSpace destructs table sparated by spaces.

func (*TableSpace) TableSeparated

func (*TableSpace) TableSeparated(in string) TableOutput

TableSeparated takes a string input and returns a slice of slices containing the separated values in each row and a slice of the original input lines. TODO: change the output to a JSON or YAML format to allow standardized parser interface.

Jump to

Keyboard shortcuts

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