[go-nuts] Re: About package lxn/walk

2019-10-13 Thread 洪嘉鴻
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 "\r\n", it works! Yes, the word should be "button", not "bottom". Thanks for your h

[go-nuts] Re: About package lxn/walk

2019-10-13 Thread 洪嘉鴻
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 works! Therefore, I have no idea why it is invalid with "\n". Yes, the wor

[go-nuts] Re: About package lxn/walk

2019-10-13 Thread 洪嘉鴻
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

[go-nuts] Re: About package lxn/walk

2019-10-13 Thread 洪嘉鴻
OK, I'll try them. Yes, the word should be "button", not "bottom". I don't think the documentation on the library is clear, either. Thanks for your suggestions! Jake Montgomery於 2019年10月10日星期四 UTC+8下午11時44分09秒寫道: > > Welcome Max, > > First a tip. It is easier for people to view your code samples

[go-nuts] Re: About package lxn/walk

2019-10-13 Thread 洪嘉鴻
OK, I'll try them. 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. >

[go-nuts] Adding dimension to 2d slice loses dimension order

2019-10-13 Thread Sean Liao
Yes, order should be preserved A reproducible code snippet would be much more helpful in identifying the issue here -- 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

[go-nuts] Re: VsCode syntax highlighting for tmpl files

2019-10-13 Thread Andreas
the drawback is when I enter in .gohtml file ```{{``` then vscode auto-copletes it with ```}}}``` did you get the same? On Wednesday, September 25, 2019 at 5:18:51 PM UTC+3, Denis Bakhtin wrote: > > This extension works well if templates have .gohtml extension. I had to > rename mine. > > On

[go-nuts] Adding dimension to 2d slice loses dimension order

2019-10-13 Thread locke . dj94
Hi all Unsure whether I'm just a bit rusty coming back to go after a little while. I've got a 2d slice of structs that is equivalent to the lines in a file. tokens := []doc.Word{} // type [][]doc.Word lines := doc.TextLines(tokens) At this stage, the order of lines is {0, 1, 2 ..., n}. I ha