table

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatTableData

func FormatTableData(result interface{}, fieldOrder []string)

FormatTableData 格式化表格数据,支持多种数据类型

func PrintTableBorder

func PrintTableBorder(columnWidths []int)

PrintTableBorder 打印表格边框

func PrintTableFromSlice

func PrintTableFromSlice(data []map[string]interface{}, fieldOrder []string)

PrintTableFromSlice 从切片数据打印表格 支持自定义字段顺序,如果fieldOrder为空则使用字母排序

Types

This section is empty.

Jump to

Keyboard shortcuts

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