code: func truncateWithLength(source string, length int) string {
  	if len(source) < length {
  		return source
  	}
  	return source[:length]
  }
docs: // truncateWithLength truncates the source string up to the length provided by the input