tableprint

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintStruct

func PrintStruct[T any](tagName string, sample []T)

PrintStruct use tagName as header and value as []body to print Struct

func PrintTable

func PrintTable(data TableData, Caption string)

PrintTable print Tables for TableData Struct.

Types

type TableData

type TableData struct {
	Header []string
	Body   [][]string
}

TableData is a struct for Table Data which can be print pretty.

Jump to

Keyboard shortcuts

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