Print

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintStruct

func PrintStruct(in interface{}, tags ...string)

PrintStruct prints a table of the given struct even print the tags when your struct has. like json or others.

Types

type Table

type Table struct {
	// Table Header as []string{"id","name","value" .....}
	Header []string
	// Table Body is content of table.
	Body [][]string
}

Table is Struct for printable table

func (*Table) Print

func (t *Table) Print(Caption string)

Print function prints the table itself.

Jump to

Keyboard shortcuts

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