main.go 615 B

1234567891011121314151617
  1. package main
  2. import (
  3. "github.com/olekukonko/tablewriter"
  4. "os"
  5. )
  6. func main() {
  7. tw := tablewriter.NewWriter(os.Stdout)
  8. tw.SetAutoWrapText(true)
  9. tw.SetColWidth(10)
  10. tw.Append([]string{"aaa", "因为有人说什么ee人要用e5仿真(我提到了你用e3用了好几年"})
  11. tw.Append([]string{"谔谔人", "任何仿真肯定都是性能越高越好"})
  12. tw.Append([]string{"长长长长长得很非常非常长非常长", "这个短点"})
  13. tw.Append([]string{"short", "这个要更长更长更长更长更长更长更长更长长长长long long long long long long long长得多😂😂😂"})
  14. tw.Render()
  15. }