for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
package utils
import "strings"
func CenterString(str string, width int) string {
spaces := int(float64(width-len(str)) / 2)
return strings.Repeat(" ", spaces) + str + strings.Repeat(" ", width-(spaces+len(str)))
}