tabletool

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package tabletool will manage table utils like generating a table

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTable

func GenerateTable(writer io.Writer, header []string, rows [][]string, opts Option) *tablewriter.Table

GenerateTable is a tool to generate a *tablewriter.Table.

Types

type Option

type Option struct {
	// Limit is the number of rows to show in the result (table format only)
	Limit int
	// WithBorder is whether to generate table with border
	WithBorder bool
	// WithRowLine is whether to generate table with row line
	WithRowLine bool
}

Option is the option used for table generation.

Jump to

Keyboard shortcuts

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