code: func DrawTextFormatBar(width int64) DrawTextFormatFunc {
  	width -= 2
  
  	return func(progress, total int64) string {
  		current := int64((float64(progress) / float64(total)) * float64(width))
  		return fmt.Sprintf(
  			"[%s%s]",
  			strings.Repeat("=", int(current)),
  			strings.Repeat(" ", int(width-current)))
  	}
  }
docs: // DrawTextFormatBar returns a DrawTextFormatFunc that draws a progress
  // bar with the given width (in characters). This can be used in conjunction
  // with another DrawTextFormatFunc to create a progress bar with bytes, for
  // example:
  //
  //     bar := DrawTextFormatBar(20)
  //     func(progress, total int64) string {
  //         return fmt.Sprintf(
  //           "%s %s",
  //           bar(progress, total),
  //           DrawTextFormatBytes(progress, total))
  //     }
  //