func readTrim(r *bufio.Reader) string {
  line, _ := r.ReadString('\n')
  line = strings.Replace(line,"\n","",-1)
  return line
}
//also simple input/trim function for reading input and stripping newlines
also simple input/trim function for reading input and stripping newlines
// also simple input / trim function for reading input and stripping newlines
func readTrim(r *bufio.Reader) string {
  line, _ := r.ReadString('\n')
  line = strings.Replace(line,"\n","",-1)
  return line
}
func readTrim ( r * bufio . Reader ) string { line , _ := r . ReadString ( '\n' ) line = strings . Replace ( line , " \n " , " " , - 1 ) return line }
also simple input/trim function for reading input and stripping newlines
also simple input / trim function for reading input and stripping newlines