code: func FormatBytesUnit(s, u uint64) string {
  	var rounded float64
  	if s < 10 {
  		rounded = float64(s)
  	} else {
  		rounded = math.Floor(float64(s)/float64(u)*10+.5) / 10
  	}
  
  	format := "%.0f"
  	if rounded < 10 && u > 1 {
  		format = "%.1f"
  	}
  
  	return fmt.Sprintf(format, rounded)
  }
docs: // FormatBytesUnit outputs the given number of bytes "s" as a quantity of the
  // given units "u" to the nearest half within .01.