code: func TrimString(s string, w int) string {
  	if w <= 0 {
  		return ""
  	}
  	if rw.StringWidth(s) > w {
  		return rw.Truncate(s, w, string(ELLIPSES))
  	}
  	return s
  }
docs: // TrimString trims a string to a max length and adds '…' to the end if it was trimmed.