I use this, to collect a input and display the input then, but when I do it like this the "something" text will be displayed in a new line, but I want the text to be displayed in the same line, any ideas?
func main() {
fmt.Println("Example")
print("example: ")
in := bufio.NewReader(os.Stdin);
input, err := in.ReadString('
');
if err != nil {
fmt.Println("Error: ", err)
}
fmt.Println(input, "something")
}