TGViewer
کداکسپلور | CodeExplore کداکسپلور | CodeExplore @codeexplore · 9.2K subscribers
Post #4141 1.46K
معرفی Tablewriter چاپ جدول قشنگ توی CLI 🚀

اگه با Go کار میکنی و میخوای خروجی ترمینالت مرتب و حرفه‌ای باشه، Tablewriter دقیقاً همونه! باهاش میتونی جدول‌های ASCII/Unicode/Markdown/HTML بسازی، سطر و ستون‌هات رو تراز کنی و حتی استایل شخصی بدی.

نصب
go get github.com/olekukonko/tablewriter@latest

نمونه سریع
data := [][]any{
{"Alice", "25 yrs", "New York"},
{"Bob", "30 yrs", "Boston"},
}

table := tablewriter.NewTable(os.Stdout)
table.Header("Name", "Age", "City")
table.Bulk(data)
_ = table.Render()

📌 خروجی:
┌───────┬────────┬──────────┐
│ NAME │ AGE │ CITY │
├───────┼────────┼──────────┤
│ Alice │ 25 yrs │ New York │
│ Bob │ 30 yrs │ Boston │
└───────┴────────┴──────────┘

ابزاری ساده ولی حرفه‌ای برای اینکه جدول‌های CLI جذاب بسازی ✨

#go #cli
☕️Telegram | Website | Discord
  • ❤‍🔥 5
  • 😁 3
  • 😍 2
  • 🔥 1
More from @codeexplore
  1. Oct 7, 2026کداکسپلور | CodeExplore pinned a photo
  2. Oct 7, 2026🤖 Routy؛ مدیریت روزت، مستقیم داخل تلگرام تسک‌هات رو بساز، عادت‌هات رو ثبت کن، یادآوری بگی…
  3. Oct 7, 2026Post #4854
  4. Oct 7, 2026‏Graphify یه ابزار اوپن سورسه که باهاش میتونید ببینید بخشای مختلف پروژه چطور به هم وصل…
  5. Oct 5, 2026😂😮 #fun ☕️ Telegram | Website | Discord
  6. Oct 5, 2026‏Vengeance UI مجموعه‌ای از Component های اوپن سورس انیمیشنی پر استفاده رو با افکتای مخ…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →