# table **Repository Path**: zlei669/table ## Basic Information - **Project Name**: table - **Description**: go实现在命令行打印表格 - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-23 - **Last Updated**: 2021-11-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # table #### 介绍 go实现在命令行打印表格 #### Example: ``` type Table struct { Name string Job string Remark string } func main() { s := []Table{ {"张三", "PHP开发", "PHP程序员"}, {"李四", "Go开发", "Go程序员"}, } head := make([]string, 1) head = []string{ "姓名","职业","说明", } t := table.TableHead(s,head) fmt.Println(t) } ┌────────┬───────────┬──────────────┐ │ 姓名 │ 职业 │ 说明 │ ├────────┼───────────┼──────────────┤ │ 张三 │ PHP开发 │ PHP程序员 │ │ 李四 │ Go开发 │ Go程序员 │ └────────┴───────────┴──────────────┘