OK, I'll try them. However, the "\n" I used didn't work. outTE.AppendText("Hello World !\n") outTE.AppendText("Nice to meet you !") The output on the text edit shows "Hello World ! Nice to meet you !" But when I use "\t", it work! Therefore, I have no idea why it is invalid with "\n". Yes, the word should be "button", not "bottom". Thanks for your help!
HaWe於 2019年10月10日星期四 UTC+8下午4時42分35秒寫道: > > Don't know about the lnx package. And I didn't check your code. > But I can answer beginner's questions: > > 1. The plus sign means concatenation for strings. > var s = "text" > s += "\n" > 2. fmt.Println prints to standard output, but fmt.Sprintln prints to a > string. > 3. Similar answer: Use fmt.Sscanf. > > Ahh ... and you might like the word 'button' better than 'bottom' :-) > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/4497b052-8e1a-4d05-96e5-233df857ad08%40googlegroups.com.