PackageManager just because
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
305 B

package Helper
import (
"bufio"
"os"
"strings"
)
var (
reader *bufio.Reader = bufio.NewReader(os.Stdin)
)
func Input() string {
var (
text string
e error
)
text, e = reader.ReadString('\n')
if e != nil {
panic(e)
}
// convert CRLF to LF
return strings.Replace(text, "\n", "", -1)
}