From 13308f739d89d1cfe4dff0ea15756361170bab2f Mon Sep 17 00:00:00 2001 From: Naveen Mahalingam Date: Sat, 5 Oct 2024 07:47:45 -0700 Subject: [PATCH] remove test code --- cmd/foo.go | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 cmd/foo.go diff --git a/cmd/foo.go b/cmd/foo.go deleted file mode 100644 index 696f0a9..0000000 --- a/cmd/foo.go +++ /dev/null @@ -1,32 +0,0 @@ -package main - -import ( - "fmt" - "os" - - "github.com/jedib0t/go-pretty/v6/table" - "golang.org/x/term" -) - -func main() { - w, h, err := term.GetSize(int(os.Stdin.Fd())) - if err != nil { - panic(err.Error()) - } - fmt.Println(w, h) - - tw := table.NewWriter() - tw.SetTitle("Title") - tw.AppendHeader(table.Row{"#", "First Name", "Last Name", "Salary"}) - tw.AppendRows([]table.Row{ - {1, "Arya", "Stark", 3000}, - {20, "Jon", "Snow", 2000, "You know nothing, Jon Snow!"}, - {300, "Tyrion", "Lannister", 5000}, - }) - tw.AppendFooter(table.Row{"", "", "Total", 10000}) - tw.SetStyle(table.StyleLight) - tw.Style().Size = table.SizeOptions{ - WidthMin: w, - } - fmt.Println(tw.Render()) -}