The glamourous AI coding agent for your favourite terminal 💘
1package diffview 2 3import ( 4 "fmt" 5 "strings" 6) 7 8func pad(v any, width int) string { 9 s := fmt.Sprintf("%v", v) 10 if len(s) >= width { 11 return s 12 } 13 return strings.Repeat(" ", width-len(s)) + s 14}