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.

25 lines
312 B

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