[go-nuts] About package lxn/walk

2019-10-09 Thread
Hello everyone:
   I'm a beginner for golang with Win10. Now I'm trying to write an 
user interface. The version of the golang which I am using is 1.12.9. Here 
are some problems that I'm encountering:

1. How to append text with a new line?
2. How to output variables as the "fmt.Println" function? (Ex:  
 fmt.Println("The initial number is:", input)) 
3. How to implement text edit as the "fmt.Scanf" function?
4. How to implement with bottoms? (Ex: There are 3 bottoms, if the third 
bottom is clicked, the three bottoms will disappear and then appear 4 new 
bottoms to let the user choose.)

Here is the code for the problems above, where the code is with lots of 
errors
Any help is appreciated.
Thank you very much!
Max

-- 
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/4e6b1b43-e645-462b-a34f-e48227601df5%40googlegroups.com.


UI-test.go
Description: Binary data


[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.
> 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/2cf6ad9c-ded1-4244-8e24-587e281fe48d%40googlegroups.com.


[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 if you post 
> them in the playground <https://play.golang.org/>. Even though this code 
> will not run in the playground, due to the imports, its a nice way for 
> people to quickly see what you are talking about. 
>
> The code you have provided does not compile. It would be much easier to 
> help you if I could try running what you have. So I suggest always making 
> sure your samples compile before posting.
>
> I'm note sure what you experience level is, but UI code can be complicated 
> and hard to debug and diagnose. So if you are new to go, I suggesting doing 
> some command line projects first to get comfortable with the language. 
>
> 2. How to output variables as the "fmt.Println" function? (Ex:  
>>  fmt.Println("The initial number is:", input)) 
>>
>
> I think you want to use fmt.Sprintf <https://golang.org/pkg/fmt/#Sprintf>to 
> get a string to then pass to AppendText: 
> outTE.AppendText(fmt.Sprintf("The initial number is: %d", initial))
>
> 3. How to implement text edit as the "fmt.Scanf" function?
>
>  
> You want to get the text from the edit box using it's Text() function then 
> call Sscanf() <https://golang.org/pkg/fmt/#Sscanf>.
>
> 4. How to implement with bottoms?
>>
>
> (Its buttons, not bottoms.) There are a bunch of examples that come with 
> walk. See https://github.com/lxn/walk/tree/master/examples. The 
> documentation on the library ios not great. I suggest you build all the 
> examples, and look at the ones that do something like what you are trying 
> to do. 
>
>  - God Luck
>
>
> On Wednesday, October 9, 2019 at 10:25:06 AM UTC-4, 洪嘉鴻 wrote:
>>
>> Hello everyone:
>>I'm a beginner for golang with Win10. Now I'm trying to write an 
>> user interface. The version of the golang which I am using is 1.12.9. Here 
>> are some problems that I'm encountering:
>>
>> 1. How to append text with a new line?
>> 2. How to output variables as the "fmt.Println" function? (Ex:  
>>  fmt.Println("The initial number is:", input)) 
>> 3. How to implement text edit as the "fmt.Scanf" function?
>> 4. How to implement with bottoms? (Ex: There are 3 bottoms, if the third 
>> bottom is clicked, the three bottoms will disappear and then appear 4 new 
>> bottoms to let the user choose.)
>>
>> Here is the code for the problems above, where the code is with lots of 
>> errors
>> Any help is appreciated.
>> Thank you very much!
>> Max
>>
>

-- 
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/f3d0d800-bf6c-4909-8622-e88af337c8ee%40googlegroups.com.


[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 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.


[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 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/b4a26a54-49a2-41ba-81c3-22e4213e76b5%40googlegroups.com.


[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 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/c08e5880-0b37-409c-a1aa-678e07f069a1%40googlegroups.com.


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

2019-10-14 Thread
Hello everyone:

I've finished studying https://github.com/lxn/walk/tree/master/examples.
However, there are some problems that I'm encountering:
1. I want to print the message after clicking the "Confirm" button, but I 
have no idea how to implement it. Here is the incompleted code: 
https://play.golang.org/p/ENxFtzd_FBr.
2. Is there any examples about tree diagram with buttons for references? 
(Ex: When we install software, there are multiple choices for users to 
choose, and then click "Next" buttons, until the installation is finished.)

Any help is appreciated.
Thank you very much!
Max

洪嘉鴻於 2019年10月9日星期三 UTC+8下午10時25分06秒寫道:
>
> Hello everyone:
>I'm a beginner for golang with Win10. Now I'm trying to write an 
> user interface. The version of the golang which I am using is 1.12.9. Here 
> are some problems that I'm encountering:
>
> 1. How to append text with a new line?
> 2. How to output variables as the "fmt.Println" function? (Ex:  
>  fmt.Println("The initial number is:", input)) 
> 3. How to implement text edit as the "fmt.Scanf" function?
> 4. How to implement with bottoms? (Ex: There are 3 bottoms, if the third 
> bottom is clicked, the three bottoms will disappear and then appear 4 new 
> bottoms to let the user choose.)
>
> Here is the code for the problems above, where the code is with lots of 
> errors
> Any help is appreciated.
> Thank you very much!
> Max
>

-- 
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/b1847597-0ab8-4569-a942-16f1aa3b17c7%40googlegroups.com.


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

2019-10-14 Thread
Hello everyone:

I've finished studying https://github.com/lxn/walk/tree/master/examples.
However, there is still a problem that I'm encountering:
Is there any examples about tree diagram with buttons for references? 
Ex: When we install software, there are multiple choices for users to 
choose, and then click "Next" buttons, until the installation is finished.

Any help is appreciated.
Thank you very much!
Max

-- 
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/b2b7c005-8d0c-4153-a100-f71f8621b855%40googlegroups.com.


[go-nuts] About http: superfluous response.WriteHeader call

2019-11-10 Thread
Hello everyone:
   I'm using golang with Win10. Now I'm trying to write a web browser. 
The version of the golang which I am using is 1.12.9. Here is the problem 
that I'm encountering:
Here  is the code. The code couldn't 
run with "The Go Playground", while it works with the "Visual Studio Code".
The results are what I want. However, there appears the message "http: 
superfluous response.WriteHeader call from main.login" with line 34 and 
line 37.
If I remove these two lines, the results won't serve the file. I have no 
idea how to avoid the warning.
Here  are the HTML files.

Any help is appreciated.
Thank you very much!
Max

-- 
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/5e7457cf-119b-4be5-adc8-a94317fc837f%40googlegroups.com.


Re: [go-nuts] About http: superfluous response.WriteHeader call

2019-11-10 Thread
I see.
Thank you very much!
Max

burak serdar於 2019年11月11日星期一 UTC+8下午1時42分13秒寫道:
>
> On Sun, Nov 10, 2019 at 10:25 PM 洪嘉鴻 > 
> wrote: 
> > 
> > Hello everyone: 
> >I'm using golang with Win10. Now I'm trying to write a web 
> browser. The version of the golang which I am using is 1.12.9. Here is the 
> problem that I'm encountering: 
> > Here is the code. The code couldn't run with "The Go Playground", while 
> it works with the "Visual Studio Code". 
> > The results are what I want. However, there appears the message "http: 
> superfluous response.WriteHeader call from main.login" with line 34 and 
> line 37. 
> > If I remove these two lines, the results won't serve the file. I have no 
> idea how to avoid the warning. 
> > Here are the HTML files. 
>
> w.Write([]byte(result)) 
> http.ServeFile(w, r, "form-3-2.html") 
>
> The reason for that warning is these two lines. The first line writes 
> some data to the response, which also forces the response writer to 
> write HTTP response headers, which at this point are empty. Then, 
> ServeFile sets some headers, and then writes those headers again, 
> thinking this is the first time the response was written. But the 
> headers are already written to the response, so the headers set by the 
> ServeFile function is lost. That's the reason you get that warning. 
> You should not set headers after you start writing the body. 
>
> You seem to be trying to add a piece of text to an html file. Instead 
> of doing it as you do, try using templates. 
>
> > 
> > Any help is appreciated. 
> > Thank you very much! 
> > Max 
> > 
> > -- 
> > 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 golan...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/5e7457cf-119b-4be5-adc8-a94317fc837f%40googlegroups.com.
>  
>
>

-- 
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/ba6a2419-bbd0-4647-a70e-85e1317c63fe%40googlegroups.com.


[go-nuts] Download server data in the web browser

2019-12-01 Thread
Hello everyone:
  The version of the golang which I am using is 1.12.9 with WIn10. Now 
I'm trying to write a web browser. I've found some examples about web 
applications.
Here is the code  about the server. 
I want to download the data (which is the variable "file" in the code) in 
the browser. However, I have no idea how to write download dialog.
Is there any functions that I could use?

Any help is appreciated.
Thank you very much!
Max

-- 
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/808605c6-dc43-4527-8657-fc1f9baa10cc%40googlegroups.com.


[go-nuts] About http template executing error

2019-12-02 Thread
Hello everyone:
  The version of the golang which I am using is 1.12.9 with WIn10. Now 
I'm trying to write a web browser.
Here are the code  and the html 
. I want to download the data and 
display the result in the browser.
However, there is an error about "http: wrote more than the declared 
Content-Length".
Can anyone suggest how to fix the code?

Any help is appreciated.
Thank you very much!
Max

-- 
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/d9da1231-9b30-4d6b-92ad-6534a5159265%40googlegroups.com.


[go-nuts] Print something while read message from server with websocket

2020-03-25 Thread
Hello everyone:
  The version of the golang which I am using is 1.12.9 with Win10.
  I want to print something while the client is waiting for server.
  The following are the partial code of server and client.

  Server:
  time.Sleep(time.Second * 100)
  ws.Write([]byte("Hello!"))
  
  Client:
  while(!ws.Read(msg)){
  fmt.Println("Please wait because server is busy.")  
  }

  Can anyone suggest how to fix the code?

  Any help is appreciated.
  Thank you very much!
  Max

-- 
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/c28114f2-c67c-4f8d-a9d8-1c5c6df02c57%40googlegroups.com.


[go-nuts] Re: Print something while read message from server with websocket

2020-03-25 Thread
I'm sorry.
The followings are the complete codes of server and client:
Server <https://play.golang.org/p/9vu0GW5a5Y8>
Client <https://play.golang.org/p/CmXjfAJSCY7>

Thank you very much!
  Max

Jake Montgomery於 2020年3月25日星期三 UTC+8下午9時28分37秒寫道:
>
> You do not provide enough information to give a really good answer. There 
> are a number of ways to achieve this, but they depend on the details. A 
> more complete example would help. 
>
> What is the type of `ws`? If it is something on which you can set a read 
> timeout, then one way would be to set a timeout, and loop.
>
> On Wednesday, March 25, 2020 at 4:10:19 AM UTC-4, 洪嘉鴻 wrote:
>>
>> Hello everyone:
>>   The version of the golang which I am using is 1.12.9 with Win10.
>>   I want to print something while the client is waiting for server.
>>   The following are the partial code of server and client.
>>
>>   Server:
>>   time.Sleep(time.Second * 100)
>>   ws.Write([]byte("Hello!"))
>>   
>>   Client:
>>   while(!ws.Read(msg)){
>>   fmt.Println("Please wait because server is busy.")  
>>   }
>>
>>   Can anyone suggest how to fix the code?
>>
>>   Any help is appreciated.
>>   Thank you very much!
>>   Max
>>
>

-- 
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/d83ed07c-b452-4e9c-98a7-d1853299db5e%40googlegroups.com.


[go-nuts] Re: Print something while read message from server with websocket

2020-03-26 Thread
I'm sorry that I didn't remind that my Client code does not compile.
I've tried your example <https://play.golang.org/p/ISUR7c_Mtqb> with 
SetReadDeadline 
<https://godoc.org/golang.org/x/net/websocket#Conn.SetReadDeadline>().
It seems like what I want to do.

Thank you very much!
  Max

Jake Montgomery於 2020年3月27日星期五 UTC+8上午1時12分07秒寫道:
>
> Your Client <https://play.golang.org/p/CmXjfAJSCY7> code does not 
> compile. As a courtesy to those trying to help, it is always good to test 
> your code before posting it. A working example, without your "busy" 
> messages would be something like: https://play.golang.org/p/cvgwd8GDobc . 
> The Read() method documentation 
> <https://godoc.org/golang.org/x/net/websocket#Conn.Read> says "Read 
> implements the io.Reader interface." So I suggest you *carefully *read 
> the io.Reader documentation <https://golang.org/pkg/io/#Reader>, because 
> it requires very specific handling to be done correctly. 
>
> Also, I did note that golang.org/x/net/websocket documentation 
> <https://godoc.org/golang.org/x/net/websocket> states that: "This package 
> currently lacks some features found in alternative and more actively 
> maintained WebSocket packages." So you may want to consider using one of 
> those. 
>
> I have not actually used golang.org/x/net 
> <https://godoc.org/golang.org/x/net>/websocket myself, but there is a 
> SetReadDeadline 
> <https://godoc.org/golang.org/x/net/websocket#Conn.SetReadDeadline>() 
> function. Because I have not used the package before, there may be some 
> hidden pitfalls that I am missing, but this code seems to do what you want, 
> using SetReadDeadline 
> <https://godoc.org/golang.org/x/net/websocket#Conn.SetReadDeadline>(): 
> https://play.golang.org/p/ISUR7c_Mtqb
>
> Good luck
>
> On Wednesday, March 25, 2020 at 8:56:57 PM UTC-4, 洪嘉鴻 wrote:
>>
>> I'm sorry.
>> The followings are the complete codes of server and client:
>> Server <https://play.golang.org/p/9vu0GW5a5Y8>
>> Client <https://play.golang.org/p/CmXjfAJSCY7>
>>
>> Thank you very much!
>>   Max
>>
>> Jake Montgomery於 2020年3月25日星期三 UTC+8下午9時28分37秒寫道:
>>>
>>> You do not provide enough information to give a really good answer. 
>>> There are a number of ways to achieve this, but they depend on the details. 
>>> A more complete example would help. 
>>>
>>> What is the type of `ws`? If it is something on which you can set a read 
>>> timeout, then one way would be to set a timeout, and loop.
>>>
>>> On Wednesday, March 25, 2020 at 4:10:19 AM UTC-4, 洪嘉鴻 wrote:
>>>>
>>>> Hello everyone:
>>>>   The version of the golang which I am using is 1.12.9 with Win10.
>>>>   I want to print something while the client is waiting for server.
>>>>   The following are the partial code of server and client.
>>>>
>>>>   Server:
>>>>   time.Sleep(time.Second * 100)
>>>>   ws.Write([]byte("Hello!"))
>>>>   
>>>>   Client:
>>>>   while(!ws.Read(msg)){
>>>>   fmt.Println("Please wait because server is busy.")  
>>>>   }
>>>>
>>>>   Can anyone suggest how to fix the code?
>>>>
>>>>   Any help is appreciated.
>>>>   Thank you very much!
>>>>   Max
>>>>
>>>

-- 
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/c283ad5f-52e9-4666-8bd4-c205300ed21f%40googlegroups.com.


[go-nuts] Re: Print something while read message from server with websocket

2020-03-26 Thread
Thanks for your replying.
I'm sorry that I didn't remind that my Client code does not compile.
I've tried your example <https://play.golang.org/p/ISUR7c_Mtqb> with 
SetReadDeadline 
<https://godoc.org/golang.org/x/net/websocket#Conn.SetReadDeadline>().
It seems like what I want to do.
However, I want to edit "spinner" message instead of "busy" message, as the 
followings:
Server <https://play.golang.org/p/9vu0GW5a5Y8> code is the same.
Here is the new Client <https://play.golang.org/p/42e7afx9owU> code.

I only want to show "Wait..." message before reading "Hello!" message.
Nevertheless, the results would be a little mess.
I have no idea what's wrong with the codes. 

Thank you very much!
  Max

Jake Montgomery於 2020年3月27日星期五 UTC+8上午1時12分07秒寫道:
>
> Your Client <https://play.golang.org/p/CmXjfAJSCY7> code does not 
> compile. As a courtesy to those trying to help, it is always good to test 
> your code before posting it. A working example, without your "busy" 
> messages would be something like: https://play.golang.org/p/cvgwd8GDobc . 
> The Read() method documentation 
> <https://godoc.org/golang.org/x/net/websocket#Conn.Read> says "Read 
> implements the io.Reader interface." So I suggest you *carefully *read 
> the io.Reader documentation <https://golang.org/pkg/io/#Reader>, because 
> it requires very specific handling to be done correctly. 
>
> Also, I did note that golang.org/x/net/websocket documentation 
> <https://godoc.org/golang.org/x/net/websocket> states that: "This package 
> currently lacks some features found in alternative and more actively 
> maintained WebSocket packages." So you may want to consider using one of 
> those. 
>
> I have not actually used golang.org/x/net 
> <https://godoc.org/golang.org/x/net>/websocket myself, but there is a 
> SetReadDeadline 
> <https://godoc.org/golang.org/x/net/websocket#Conn.SetReadDeadline>() 
> function. Because I have not used the package before, there may be some 
> hidden pitfalls that I am missing, but this code seems to do what you want, 
> using SetReadDeadline 
> <https://godoc.org/golang.org/x/net/websocket#Conn.SetReadDeadline>(): 
> https://play.golang.org/p/ISUR7c_Mtqb
>
> Good luck
>
> On Wednesday, March 25, 2020 at 8:56:57 PM UTC-4, 洪嘉鴻 wrote:
>>
>> I'm sorry.
>> The followings are the complete codes of server and client:
>> Server <https://play.golang.org/p/9vu0GW5a5Y8>
>> Client <https://play.golang.org/p/CmXjfAJSCY7>
>>
>> Thank you very much!
>>   Max
>>
>> Jake Montgomery於 2020年3月25日星期三 UTC+8下午9時28分37秒寫道:
>>>
>>> You do not provide enough information to give a really good answer. 
>>> There are a number of ways to achieve this, but they depend on the details. 
>>> A more complete example would help. 
>>>
>>> What is the type of `ws`? If it is something on which you can set a read 
>>> timeout, then one way would be to set a timeout, and loop.
>>>
>>> On Wednesday, March 25, 2020 at 4:10:19 AM UTC-4, 洪嘉鴻 wrote:
>>>>
>>>> Hello everyone:
>>>>   The version of the golang which I am using is 1.12.9 with Win10.
>>>>   I want to print something while the client is waiting for server.
>>>>   The following are the partial code of server and client.
>>>>
>>>>   Server:
>>>>   time.Sleep(time.Second * 100)
>>>>   ws.Write([]byte("Hello!"))
>>>>   
>>>>   Client:
>>>>   while(!ws.Read(msg)){
>>>>   fmt.Println("Please wait because server is busy.")  
>>>>   }
>>>>
>>>>   Can anyone suggest how to fix the code?
>>>>
>>>>   Any help is appreciated.
>>>>   Thank you very much!
>>>>   Max
>>>>
>>>

-- 
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/d3652a2e-13e0-4374-a098-e0c092f77b62%40googlegroups.com.


[go-nuts] Re: Print something while read message from server with websocket

2020-03-26 Thread
I'm sorry that I didn't remind that my Client code does not compile.
I've tried your example <https://play.golang.org/p/ISUR7c_Mtqb> with 
SetReadDeadline 
<https://godoc.org/golang.org/x/net/websocket#Conn.SetReadDeadline>().
It seems like what I want to do.

Thank you very much!
  Max

Jake Montgomery於 2020年3月27日星期五 UTC+8上午1時12分07秒寫道:
>
> Your Client <https://play.golang.org/p/CmXjfAJSCY7> code does not 
> compile. As a courtesy to those trying to help, it is always good to test 
> your code before posting it. A working example, without your "busy" 
> messages would be something like: https://play.golang.org/p/cvgwd8GDobc . 
> The Read() method documentation 
> <https://godoc.org/golang.org/x/net/websocket#Conn.Read> says "Read 
> implements the io.Reader interface." So I suggest you *carefully *read 
> the io.Reader documentation <https://golang.org/pkg/io/#Reader>, because 
> it requires very specific handling to be done correctly. 
>
> Also, I did note that golang.org/x/net/websocket documentation 
> <https://godoc.org/golang.org/x/net/websocket> states that: "This package 
> currently lacks some features found in alternative and more actively 
> maintained WebSocket packages." So you may want to consider using one of 
> those. 
>
> I have not actually used golang.org/x/net 
> <https://godoc.org/golang.org/x/net>/websocket myself, but there is a 
> SetReadDeadline 
> <https://godoc.org/golang.org/x/net/websocket#Conn.SetReadDeadline>() 
> function. Because I have not used the package before, there may be some 
> hidden pitfalls that I am missing, but this code seems to do what you want, 
> using SetReadDeadline 
> <https://godoc.org/golang.org/x/net/websocket#Conn.SetReadDeadline>(): 
> https://play.golang.org/p/ISUR7c_Mtqb
>
> Good luck
>
> On Wednesday, March 25, 2020 at 8:56:57 PM UTC-4, 洪嘉鴻 wrote:
>>
>> I'm sorry.
>> The followings are the complete codes of server and client:
>> Server <https://play.golang.org/p/9vu0GW5a5Y8>
>> Client <https://play.golang.org/p/CmXjfAJSCY7>
>>
>> Thank you very much!
>>   Max
>>
>> Jake Montgomery於 2020年3月25日星期三 UTC+8下午9時28分37秒寫道:
>>>
>>> You do not provide enough information to give a really good answer. 
>>> There are a number of ways to achieve this, but they depend on the details. 
>>> A more complete example would help. 
>>>
>>> What is the type of `ws`? If it is something on which you can set a read 
>>> timeout, then one way would be to set a timeout, and loop.
>>>
>>> On Wednesday, March 25, 2020 at 4:10:19 AM UTC-4, 洪嘉鴻 wrote:
>>>>
>>>> Hello everyone:
>>>>   The version of the golang which I am using is 1.12.9 with Win10.
>>>>   I want to print something while the client is waiting for server.
>>>>   The following are the partial code of server and client.
>>>>
>>>>   Server:
>>>>   time.Sleep(time.Second * 100)
>>>>   ws.Write([]byte("Hello!"))
>>>>   
>>>>   Client:
>>>>   while(!ws.Read(msg)){
>>>>   fmt.Println("Please wait because server is busy.")  
>>>>   }
>>>>
>>>>   Can anyone suggest how to fix the code?
>>>>
>>>>   Any help is appreciated.
>>>>   Thank you very much!
>>>>   Max
>>>>
>>>

-- 
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/ac4c3a2d-9305-4775-bc84-a91c8661bc38%40googlegroups.com.


[go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread
Hello everyone:
I use golang with Win10. I want to build GUI executables which can work on 
Linux.
I found this 
 and I 
could build GUI executable which can work on Windows.
However, I couldn't build GUI executable which can work on Linux with the 
followings:

   cd %~dp0
   set GOOS=linux
   set GOARCH=amd64
   go build -v -o gradientcomposite gradientcomposite.go
   pause
  
Is there something wrong with cross-compiler or could "lxn/walk" only work 
on Windows?

Any help is appreciated.
Thank you very much!
Max

-- 
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/437a3c1c-17aa-4d41-9560-3cabde2aa16f%40googlegroups.com.


Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread
I see.
Thank you very much!
Max

sanye於 2020年4月8日星期三 UTC+8下午3時21分55秒寫道:
>
>
> On 4/8/20 3:08 PM, 洪嘉鴻 wrote:
>
> Hello everyone:
> I use golang with Win10. I want to build GUI executables which can work on 
> Linux.
> I found this 
> <https://github.com/lxn/walk/tree/master/examples/gradientcomposite> and 
> I could build GUI executable which can work on Windows.
> However, I couldn't build GUI executable which can work on Linux with the 
> followings:
>
>cd %~dp0
>set GOOS=linux
>set GOARCH=amd64
>go build -v -o gradientcomposite gradientcomposite.go
>pause
>   
> Is there something wrong with cross-compiler or could "lxn/walk" only work 
> on Windows?
>
> lxn/walk use lxn/win, which wraps windows api,so you can not use it under 
> linux
>
>
> Any help is appreciated.
> Thank you very much!
> Max
> -- 
> 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 golan...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/437a3c1c-17aa-4d41-9560-3cabde2aa16f%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/golang-nuts/437a3c1c-17aa-4d41-9560-3cabde2aa16f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>

-- 
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/48546df6-d2c0-40c6-b3f1-5033cbbb6ace%40googlegroups.com.


Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread
I want to run executables on both Windows and Linux.
I don't think it is convenient to maintain 2 codes with lxn/walk on Windows 
and go-gtk3 on Linux.
Therefore, I'm trying to look for something that could work on both Windows 
and Linux.
I'll try the breakdown you offered.
Thank you very much!
Max

Philip Chapman於 2020年4月8日星期三 UTC+8下午7時01分51秒寫道:
>
> There are a few options, but it rather depends on what you need to do.  
> The most similar to walk for linux would be go-gtk3.  However, for 
> cross-platform, probably the QT bindings.  If you want to go the embedded 
> html route, there are a few different options.  I personally like Wails.  
> Here is a breakdown of some of the options so that you can research which 
> one fits your needs:
>
> https://github.com/avelino/awesome-go#gui
>
> On Wed, Apr 8, 2020 at 3:42 AM Kevin Chadwick  > wrote:
>
>>
>> >> lxn/walk use lxn/win, which wraps windows api,so you can not use it 
>> under linux
>>
>> > You could also look into wsl.
>>
>> oops, ignore my last.
>>
>> I'm not sure there is a "Good" cross platform scenario for GO/html that 
>> matches
>> GOs cross platform abilities, at the moment. Desktop sure but not really, 
>> mobile
>> and desktop at the same time, fyne maybe.
>>
>> I'm looking at running chrome with --app and and then webview on mobile, 
>> both
>> with a local http server.
>>
>> -- 
>> 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 golan...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/golang-nuts/f6edf972-3f86-6eee-cc92-3568970ed8ef%40gmail.com
>> .
>>
>
>
> -- 
> Philip A. Chapman
> Java Software Development
> Enterprise, Web, and Desktop
>

-- 
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/64c0cb34-2cca-4378-9390-70502492725b%40googlegroups.com.


Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread
I've found this 
 that 
could run chrome.
However, I'm not sure whether it could run chrome with mobile or not.
Thanks for your replying!
Max

Kevin Chadwick於 2020年4月8日星期三 UTC+8下午6時43分06秒寫道:
>
>
> >> lxn/walk use lxn/win, which wraps windows api,so you can not use it 
> under linux 
>
> > You could also look into wsl. 
>
> oops, ignore my last. 
>
> I'm not sure there is a "Good" cross platform scenario for GO/html that 
> matches 
> GOs cross platform abilities, at the moment. Desktop sure but not really, 
> mobile 
> and desktop at the same time, fyne maybe. 
>
> I'm looking at running chrome with --app and and then webview on mobile, 
> both 
> with a local http server. 
>

-- 
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/9b7cac84-595e-4e54-ba56-3cd1e5fffd3d%40googlegroups.com.


Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread
Excuse me.
Did you mean this <https://github.com/fyne-io/fyne>?
Thank you very much!
Max

Ronny Bangsund於 2020年4月9日星期四 UTC+8上午11時14分35秒寫道:
>
> On Thursday, April 9, 2020 at 5:01:02 AM UTC+2, 洪嘉鴻 wrote:
>>
>> I want to run executables on both Windows and Linux.
>> I don't think it is convenient to maintain 2 codes with lxn/walk on 
>> Windows and go-gtk3 on Linux.
>>
> Yeah, it gets messy quickly. It can be done, but then you're probably 
> writing another abstraction layer anyway.
>  
> I started on a hobby project in Fyne today, and combined with fyne-cross I 
> had Linux, macOS and Windows building up and running within minutes. There 
> are some elementary widgets and features (mainly listviews, treeviews and 
> systray stuff) I wish for, but their development process means they'd 
> rather have something working than ship half-done features. That sort of 
> thing makes me think it's the most promising Go GUI/app framework right now.
>
>

-- 
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/f9bf12d0-1bfd-4ccd-b158-806067ecb5ca%40googlegroups.com.


Re: [go-nuts] Is it possible to build Linux executables on Windows with lxn/walk?

2020-04-08 Thread
I see.
I'll try it.
Thank you very much!
Max

Ronny Bangsund於 2020年4月9日星期四 UTC+8下午12時40分41秒寫道:
>
>
>
> On Thursday, April 9, 2020 at 6:03:24 AM UTC+2, 洪嘉鴻 wrote:
>>
>> Excuse me.
>> Did you mean this <https://github.com/fyne-io/fyne>?
>> Thank you very much!
>>
> Yes, that's the one, Docs at https://fyne.io and the 
> cross-builder/packager at https://github.com/lucor/fyne-cross. 
>

-- 
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/6fea8301-da3e-4372-952c-cd567141fef1%40googlegroups.com.


[go-nuts] Is it possible to segment CMD window on Windows and segment Terminal window on Linux with golang?

2020-04-09 Thread
Hello everyone:
I use golang with Win10. I want to build executables which can segment 
terminal window and show different messages on different windows.
Besides, I also want the code can also cross-compile for Linux so that it 
is convenient to maintain.
Is it possible to segment CMD window on Windows and segment Terminal window 
on Linux with golang?

Any help is appreciated.
Thank you very much!
Max

-- 
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/6b4c23e0-8dee-49c4-9c44-fc811f3769bd%40googlegroups.com.


[go-nuts] Re: Is it possible to segment CMD window on Windows and segment Terminal window on Linux with golang?

2020-04-10 Thread
It looks interesting!
However, it looks too difficult for me to do this.
I just found this <https://github.com/gizak/termui> and use cross-compile 
to build Windows and Linux executables with Win10.
Then, I executed  the executables on Win10 and Linux(with VMware).
Both of them could work.
Now I'm trying to segment two windows.
One is for scanning inputs.
The other is for displaying results.
Besides, the window which displays results should refresh the screen before 
displaying new results.
I'm looking for some examples about that. 
Thanks for your replying.
Max

Jason E. Aten於 2020年4月10日星期五 UTC+8下午3時16分20秒寫道:
>
> https://github.com/gdamore/tcell/ 
> <https://github.com/gdamore/tcell/issues/182> tcell lets you do fine 
> grain control of the terminal. https://github.com/gdamore/proxima5 is an 
> example game written with it.
>
> However be aware the the terminal on Windows is generally... garbage. 
> There aren't any really good terminal emulators for windows. The cmd.exe 
> terminal responses can vary based on QuickEdit mode and other settings, e.g.
>
> https://github.com/gdamore/tcell/issues/182
>
>
> On Friday, April 10, 2020 at 2:52:20 AM UTC-4, 洪嘉鴻 wrote:
>>
>> Hello everyone:
>> I use golang with Win10. I want to build executables which can segment 
>> terminal window and show different messages on different windows.
>> Besides, I also want the code can also cross-compile for Linux so that it 
>> is convenient to maintain.
>> Is it possible to segment CMD window on Windows and segment Terminal 
>> window on Linux with golang?
>>
>> Any help is appreciated.
>> Thank you very much!
>> Max
>>
>

-- 
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/bff1e938-c6db-44ee-88e8-323a28c5da35%40googlegroups.com.


[go-nuts] Re: Is it possible to segment CMD window on Windows and segment Terminal window on Linux with golang?

2020-04-12 Thread
I think that you are right.
I found that the "Hello World" executables are a little different.
In fact, the executables are compiled from the same source code, which 
means that it might cause a lot of problems if I use it.
I'll try to create a web browser.
Thanks for your suggestions!
Max

Jason E. Aten於 2020年4月10日星期五 UTC+8下午6時42分50秒寫道:
>
> Terminals are a pain to work with. Since you want cross-platform anyway, 
> you
> should just create a little web server within your Go program, and serve 
> webpages to a browser.
> Believe this, it will save you vast amounts of time and energy.
>

-- 
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/03aac914-c59d-4215-a30a-6f54277fcb4d%40googlegroups.com.


[go-nuts] Re: Is it possible to segment CMD window on Windows and segment Terminal window on Linux with golang?

2020-04-12 Thread
I've tried this  which you offered, I don't 
think that it is correct for the box.
Besides, I have no idea why "H" disappeared with Linux executable?
However, I think I'll try to use this for my tasks.
Thanks for your information!
Max

Jason E. Aten於 2020年4月10日星期五 UTC+8下午6時49分12秒寫道:
>
> If you insist on terminal (which as I pointed out, is a mistake; I have 
> made it and learned better), then
>
> https://github.com/rivo/tview
>
> is probably the better choice versus termui.
>

-- 
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/d49ff789-f1c3-4c97-a575-720de2d5fc7e%40googlegroups.com.


[go-nuts] Re: Is it possible to segment CMD window on Windows and segment Terminal window on Linux with golang?

2020-04-12 Thread
I don't think it is simple to use because it seems to configure lots of 
settings.
However, I'll try this.
Thanks for your information!
Max

Mandolyte於 2020年4月11日星期六 UTC+8下午6時57分25秒寫道:
>
> Might review how the micro editor handles it... as an editor functioning 
> in a terminal window and cross platform, it is quite stellar.
> https://pkg.go.dev/mod/github.com/zyedidia/micro@v1.4.1
>
> On Friday, April 10, 2020 at 6:49:12 AM UTC-4, Jason E. Aten wrote:
>>
>> If you insist on terminal (which as I pointed out, is a mistake; I have 
>> made it and learned better), then
>>
>> https://github.com/rivo/tview
>>
>> is probably the better choice versus termui.
>>
>

-- 
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/0b17b947-7c4b-404e-8ccf-9cfa85a75951%40googlegroups.com.


[go-nuts] How to scan input with termui?

2020-04-16 Thread
Hello everyone:
I use golang with Win10. I started to learn termui recently.
However, I couldn't find any examples about how to scan input with this 
.
I tried to write simple code , but 
there are some errors.
I have no idea how to edit it.
Could anyone help me to solve this problem?

Any help is appreciated.
Thank you very much!
Max

-- 
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/1f93237a-5143-4d20-b3d8-1d681a310af5%40googlegroups.com.


[go-nuts] Re: How to scan input with termui?

2020-04-17 Thread
I think that you misunderstand my meaning.
The input I wondered is from the keyboards, like this 
.
I have no idea how to implement it with termui.
Besides, I edit the code  to print 
something after closing the UI.
However, the result seems strange.
The result appears with the UI and then disappeared with the UI.

Thanks for your replying.
Max

Brian Candler於 2020年4月16日星期四 UTC+8下午7時21分11秒寫道:
>
> inputParagraph.Text = fmt.Scanf("%s", input) // Error: assignment 
> mismatch: 1 variable but fmt.Scanf returns 2 values
>
> The error message is clear: fmt.Scanf returns two values (BTW, neither of 
> them is the value extracted).  Check the documentation for fmt.Scanf here:
> https://golang.org/pkg/fmt/#Scanf
> https://golang.org/pkg/fmt/#hdr-Scanning
> https://golang.org/pkg/fmt/#example_Sscanf
>
> outputParagraph.Text += fmt.Printf("The string you entered is: %s", input) 
> // multiple-value fmt.Printf() in single-value context
>
> In this case you want fmt.Sprintf instead:
> https://golang.org/pkg/fmt/#Sprintf
>
>

-- 
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/2d109ade-042f-4f35-9bcf-d24b398fa1a1%40googlegroups.com.


[go-nuts] Re: How to scan input with termui?

2020-04-19 Thread
I've seen the hits you offered.
However, I couldn't see any examples with the hits.
Besides, the version of termui I used is v3, which is the latest version.
There isn't any functions about the input.
The second is that I want to print something as normal after exit the UI.

Thanks for your replying and information.
Max
 

Brian Candler於 2020年4月17日星期五 UTC+8下午6時52分01秒寫道:
>
> Well, it's always good to fix the errors :-)
>
> In short, you'll need to get a string from termui, and then use fmt.Sscanf 
> instead of fmt.Scanf.
>
> A quick google for "go termui text input" turns up these as the first two 
> hits:
> https://github.com/gizak/termui/issues/34
> https://github.com/gizak/termui/pull/129
>
> They answer your question.  The second is a contributed text input widget 
> which hasn't been merged into the mainline source, but you could use termui 
> from this fork.
>

-- 
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/265c5da1-f4a3-46bd-bd00-2599c99a68c8%40googlegroups.com.


[go-nuts] About text-based user interface for Windows and Linux

2020-04-30 Thread
Hello everyone:
I use golang with Win10.
I want to make some text-based user interface executables for Windows and 
Linux.
There are sure many libraries about text-based user interface, such as 
tcell, termbox, gocui, termui, tui, tview, and so on.
However, the boxes and some words are cut while executing.
The followings are the pictures which execute "tview" on Windows and 
Linux(VMware Ubuntu 18.04).

[image: Windows.PNG] [image: VMware (Ubuntu).PNG] 

The problem always happen while executing on Windows whatever using any 
libraries mentioned above, while some happen while executing on Linux.
I have no idea what causes the results.
Does anyone know why and how to solve?


Any help is appreciated.
Thank you very much!
Max

-- 
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/bf1c045d-160d-4841-9da3-d50a8f857584%40googlegroups.com.


[go-nuts] Re: About text-based user interface for Windows and Linux

2020-05-03 Thread
I'm looking for cross-compile source code examples about text-based user 
interface for Windows and Linux, not the terminal emulators.
I think it might be difficult to find the examples that could work on both 
Windows and Linux.

Thanks for your replying!
Max

Jason E. Aten於 2020年5月2日星期六 UTC+8上午11時01分57秒寫道:
>
> All the terminal emulators I've seen on Windows are garbage. I've only 
> tried the free ones though. You could go through a
> list like this 
> https://www.slant.co/topics/1552/~best-terminal-emulators-for-windows 
> systematically 
> and try them all. Who knows,
> maybe one of the paid-for ones will work. 
>
> Whether Quick-Edit mode is on or off in the cmd.exe windows can make a 
> difference for things like mouse clicks (
> https://github.com/gdamore/tcell/issues/182 ),
>
>  But really, write a web page instead.
>

-- 
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/848aed94-b51e-4542-af34-09a5d35581c0%40googlegroups.com.


[go-nuts] Re: About text-based user interface for Windows and Linux

2020-05-03 Thread
I see.
Actually I only want to make a simple application.
The application is about segmenting two text-boxes for input and output.
I've tried this  and it seems good, except 
for the complicated example such as "demo".
(The terminal emulator on Windows really mess "demo" up.)
However, it seems that there is not any functions to scan input with 
"termui".
The answer I found from this  
could't 
solve the problem because the the type "Attribute" and "TextBuilder" are 
undefined within "input.go".
I've just asked the author.
Besides, I've also tried Tcell .
However, there is not more examples for learning.
Did you find any examples and could you offer the link?

Thanks for your replying.
Max

Jason E. Aten於 2020年5月4日星期一 UTC+8上午9時45分57秒寫道:
>
> You didn't take my meaning. The reason the examples don't work on Windows 
> is because the terminal emulator on Windows is messing them up.
>
> https://github.com/gdamore/proxima5 is an example. Tcell is cross 
> platform.
>

-- 
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/3aaf75d8-d992-4612-91c4-ae73094f8157%40googlegroups.com.


Re: [go-nuts] Re: About text-based user interface for Windows and Linux

2020-05-04 Thread
I tried to get and install the package <https://github.com/robaho/go-trader>
.
However, when I use "go get github.com/robaho/go-trader", it displayed 
"package github.com/robaho/go-trader: no Go files in 
"$GOPATH\src\github.com\robaho\go-trader".
I use 1.12.9 of go version on Windows 10.
Is the version that I used not suitable?

Thanks for your replying.
Max

Robert Engels於 2020年5月4日星期一 UTC+8下午9時06分08秒寫道:
>
> Look at github.com/robaho/go-trader
>
> It has a nice example of using gcui 
>
> On May 3, 2020, at 11:06 PM, 洪嘉鴻 > wrote:
>
> 
> I see.
> Actually I only want to make a simple application.
> The application is about segmenting two text-boxes for input and output.
> I've tried this <https://github.com/gizak/termui> and it seems good, 
> except for the complicated example such as "demo".
> (The terminal emulator on Windows really mess "demo" up.)
> However, it seems that there is not any functions to scan input with 
> "termui".
> The answer I found from this <https://github.com/gizak/termui/issues/34> 
> could't 
> solve the problem because the the type "Attribute" and "TextBuilder" are 
> undefined within "input.go".
> I've just asked the author.
> Besides, I've also tried Tcell <https://github.com/gdamore/tcell>.
> However, there is not more examples for learning.
> Did you find any examples and could you offer the link?
>
> Thanks for your replying.
> Max
>
> Jason E. Aten於 2020年5月4日星期一 UTC+8上午9時45分57秒寫道:
>>
>> You didn't take my meaning. The reason the examples don't work on Windows 
>> is because the terminal emulator on Windows is messing them up.
>>
>> https://github.com/gdamore/proxima5 is an example. Tcell is cross 
>> platform.
>>
> -- 
> 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 golan...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/3aaf75d8-d992-4612-91c4-ae73094f8157%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/golang-nuts/3aaf75d8-d992-4612-91c4-ae73094f8157%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>

-- 
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/bd8aca98-4ec2-4ded-9636-bae621588b2a%40googlegroups.com.


Re: [go-nuts] Re: About text-based user interface for Windows and Linux

2020-05-04 Thread
I've downloaded from git clone.
However, there was a message that displayed "use of internal package 
github.com/robaho/go-trader/internal/exchange not allowed" with "algo.go".
I'm sure that there does a file "exchange" in the directory.
Therefore, I have no idea what causes the problem and how to edit.

Thanks for your replying.
Max
 



Kurtis Rader於 2020年5月5日星期二 UTC+8上午10時25分05秒寫道:
>
> On Mon, May 4, 2020 at 7:13 PM 洪嘉鴻 > 
> wrote:
>
>> I tried to get and install the package 
>> <https://github.com/robaho/go-trader>.
>> However, when I use "go get github.com/robaho/go-trader", it displayed 
>> "package github.com/robaho/go-trader: no Go files in "$GOPATH\src\
>> github.com\robaho\go-trader".
>> I use 1.12.9 of go version on Windows 10.
>> Is the version that I used not suitable?
>>
>
> Works for me. If you're doing that at work there is probably a firewall 
> that is disrupting the "go get" network traffic. Regardless, since all you 
> want to do is download the source to review it just do "git clone https://
> github.com/robaho/go-trader". And if that doesn't work you need to figure 
> out what is wrong with your connection to the Internet.
>
> -- 
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank
>

-- 
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/51c049be-bdd3-468b-9d2a-ec307698fd9b%40googlegroups.com.


Re: [go-nuts] About text-based user interface for Windows and Linux

2020-05-04 Thread
Here are the pictures that I tested and displayed panic error.
I have no idea what causes the problem.

[image: algo.PNG] [image: 
client.PNG]














Thank you very much!
Max


robert engels於 2020年5月5日星期二 UTC+8上午11時26分02秒寫道:
>
> There is no file algo.go in the repo so I am not sure what you are doing.
>
> I just tested cmd/algo with Intellij and it ran fine.
>
> You would be interested in the file cmd/client/main.go to see how to use 
> gocui.
>
> On May 4, 2020, at 10:15 PM, 洪嘉鴻 > wrote:
>
> I've downloaded from git clone.
> However, there was a message that displayed "use of internal package 
> github.com/robaho/go-trader/internal/exchange not allowed" with "algo.go".
> I'm sure that there does a file "exchange" in the directory.
> Therefore, I have no idea what causes the problem and how to edit.
>
> Thanks for your replying.
> Max
>  
>
>
>
> Kurtis Rader於 2020年5月5日星期二 UTC+8上午10時25分05秒寫道:
>>
>> On Mon, May 4, 2020 at 7:13 PM 洪嘉鴻  wrote:
>>
>>> I tried to get and install the package 
>>> <https://github.com/robaho/go-trader>.
>>> However, when I use "go get github.com/robaho/go-trader", it displayed 
>>> "package github.com/robaho/go-trader: no Go files in "$GOPATH\src\
>>> github.com\robaho\go-trader".
>>> I use 1.12.9 of go version on Windows 10.
>>> Is the version that I used not suitable?
>>>
>>
>> Works for me. If you're doing that at work there is probably a firewall 
>> that is disrupting the "go get" network traffic. Regardless, since all you 
>> want to do is download the source to review it just do "git clone https://
>> github.com/robaho/go-trader". And if that doesn't work you need to 
>> figure out what is wrong with your connection to the Internet.
>>
>> -- 
>> Kurtis Rader
>> Caretaker of the exceptional canines Junior and Hank
>>
>
> -- 
> 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 golan...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/51c049be-bdd3-468b-9d2a-ec307698fd9b%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/golang-nuts/51c049be-bdd3-468b-9d2a-ec307698fd9b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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/0479e3bf-3dea-46ff-bb36-46dea4d7b751%40googlegroups.com.


Re: [go-nuts] About text-based user interface for Windows and Linux

2020-05-04 Thread
Here are the pictures that I tested and displayed panic error.
I have no idea what causes the problem.

[image: client.PNG][image: algo.PNG] 

Thank you very much!
Max


robert engels於 2020年5月5日星期二 UTC+8上午11時26分02秒寫道:
>
> There is no file algo.go in the repo so I am not sure what you are doing.
>
> I just tested cmd/algo with Intellij and it ran fine.
>
> You would be interested in the file cmd/client/main.go to see how to use 
> gocui.
>
> On May 4, 2020, at 10:15 PM, 洪嘉鴻 > wrote:
>
> I've downloaded from git clone.
> However, there was a message that displayed "use of internal package 
> github.com/robaho/go-trader/internal/exchange not allowed" with "algo.go".
> I'm sure that there does a file "exchange" in the directory.
> Therefore, I have no idea what causes the problem and how to edit.
>
> Thanks for your replying.
> Max
>  
>
>
>
> Kurtis Rader於 2020年5月5日星期二 UTC+8上午10時25分05秒寫道:
>>
>> On Mon, May 4, 2020 at 7:13 PM 洪嘉鴻  wrote:
>>
>>> I tried to get and install the package 
>>> <https://github.com/robaho/go-trader>.
>>> However, when I use "go get github.com/robaho/go-trader", it displayed 
>>> "package github.com/robaho/go-trader: no Go files in "$GOPATH\src\
>>> github.com\robaho\go-trader".
>>> I use 1.12.9 of go version on Windows 10.
>>> Is the version that I used not suitable?
>>>
>>
>> Works for me. If you're doing that at work there is probably a firewall 
>> that is disrupting the "go get" network traffic. Regardless, since all you 
>> want to do is download the source to review it just do "git clone https://
>> github.com/robaho/go-trader". And if that doesn't work you need to 
>> figure out what is wrong with your connection to the Internet.
>>
>> -- 
>> Kurtis Rader
>> Caretaker of the exceptional canines Junior and Hank
>>
>
> -- 
> 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 golan...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/51c049be-bdd3-468b-9d2a-ec307698fd9b%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/golang-nuts/51c049be-bdd3-468b-9d2a-ec307698fd9b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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/22594025-791a-43c7-9c16-8d92aa3791a3%40googlegroups.com.


Re: [go-nuts] Re: About text-based user interface for Windows and Linux

2020-05-04 Thread
I didn't run "go build".
The message was displayed under the problem of Visual Studio Code.
However, the message was disappeared after I restart the source code.

Thank you very much!
Max

Kurtis Rader於 2020年5月5日星期二 UTC+8上午11時33分15秒寫道:
>
> On Mon, May 4, 2020 at 8:15 PM 洪嘉鴻 > 
> wrote:
>
>> I've downloaded from git clone.
>> However, there was a message that displayed "use of internal package 
>> github.com/robaho/go-trader/internal/exchange not allowed" with 
>> "algo.go".
>> I'm sure that there does a file "exchange" in the directory.
>> Therefore, I have no idea what causes the problem and how to edit.
>>
>
>  There is no way that "git clone" produced that error message. You need to 
> tell us what command you ran that resulted in that error. However, I 
> suspect you ran "go build" or something similar. My suggestion to run "git 
> clone" was predicated on you wanting to just review the source code; not 
> build it. If you want to be able to build it, and import it into other 
> projects, then you need to figure out why "go get" doesn't work on your 
> system.
>
> -- 
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank
>

-- 
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/6ae3cf71-61fc-47ce-a41a-bb4386387b55%40googlegroups.com.


[go-nuts] Re: How to scan input with termui?

2020-05-05 Thread
I've tried the links you offered and test the source code 
.
However, it occurred fatal error.
I have no idea what causes the problem.
The error is as the following picture.

[image: Error.PNG]


Thank you very much!

Max


Brian Candler於 2020年4月17日星期五 UTC+8下午6時52分01秒寫道:
>
> Well, it's always good to fix the errors :-)
>
> In short, you'll need to get a string from termui, and then use fmt.Sscanf 
> instead of fmt.Scanf.
>
> A quick google for "go termui text input" turns up these as the first two 
> hits:
> https://github.com/gizak/termui/issues/34
> https://github.com/gizak/termui/pull/129
>
> They answer your question.  The second is a contributed text input widget 
> which hasn't been merged into the mainline source, but you could use termui 
> from this fork.
>

-- 
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/30c80be4-8629-4015-b666-bf2f373e8a3d%40googlegroups.com.


[go-nuts] Strings with blank convert to bytes

2020-07-09 Thread
Hello everyone:
I use golang with Win10. The version of golang I used is go1.12.9.
This  is a simple code I'm trying to 
figure out.
However, I have no idea how to edit to make the output "b1" the same as "b" 
if "b1" is read from user input.
Could anyone help me to solve this problem?

Any help is appreciated.
Thank you very much!
Max

-- 
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/9ec0ae5e-8b11-4a4b-a4b0-dd23a92d33fao%40googlegroups.com.


[go-nuts] Re: Strings with blank convert to bytes

2020-07-09 Thread
Hello!
The problem isn't solve when I use "fmt.Scanln" instead of "fmt.Scanf".
That is, the result is the same whatever I use "fmt.Scanln" or "fmt.Scanf".

Thanks for your replying.
Max

tokers於 2020年7月10日星期五 UTC+8上午10時12分04秒寫道:
>
> Hello!
>
> Just quote the document:
>
> > Scanf scans text read from standard input, storing successive 
> space-separated values into successive arguments as determined by the format
>
> Instead, you can use fmt.Scanln.
> On Friday, July 10, 2020 at 10:03:26 AM UTC+8 max1...@gmail.com wrote:
>
>> Hello everyone:
>> I use golang with Win10. The version of golang I used is go1.12.9.
>> This  is a simple code I'm trying 
>> to figure out.
>> However, I have no idea how to edit to make the output "b1" the same as 
>> "b" if "b1" is read from user input.
>> Could anyone help me to solve this problem?
>>
>> Any help is appreciated.
>> Thank you very much!
>> Max
>>
>

-- 
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/5d33d2f0-6043-44cc-8c6a-6da4f9cd1dc0o%40googlegroups.com.


Re: [go-nuts] Re: Strings with blank convert to bytes

2020-07-09 Thread
Hello!
I've just found this 
<https://stackoverflow.com/questions/20895552/how-to-read-from-standard-input-in-the-console>
 according 
the information which you provided.
Although there is a little different that it also reads "\n" with 
ReadString().
However, it solves my problem.

Thanks for your replying.
Max

Kurtis Rader於 2020年7月10日星期五 UTC+8上午11時03分51秒寫道:
>
> On Thu, Jul 9, 2020 at 7:23 PM 洪嘉鴻 > 
> wrote:
>
>> Hello!
>> The problem isn't solve when I use "fmt.Scanln" instead of "fmt.Scanf".
>> That is, the result is the same whatever I use "fmt.Scanln" or 
>> "fmt.Scanf".
>>
>
> From the documentation:
>
> the %s verb (and %v reading into a string) stops consuming input at the 
> first space or newline character.
> You shouldn't be using the Scanf family of functions if you don't want the 
> input split on whitespace boundaries. You probably want bufio.ReadLine or 
> similar. See 
> https://stackoverflow.com/questions/8757389/reading-a-file-line-by-line-in-go
>  
>
>> Instead, you can use fmt.Scanln.
>>> On Friday, July 10, 2020 at 10:03:26 AM UTC+8 max1...@gmail.com wrote:
>>>
>>>> Hello everyone:
>>>> I use golang with Win10. The version of golang I used is go1.12.9.
>>>> This <https://play.golang.org/p/ourFKQzmhgu> is a simple code I'm 
>>>> trying to figure out.
>>>> However, I have no idea how to edit to make the output "b1" the same as 
>>>> "b" if "b1" is read from user input.
>>>> Could anyone help me to solve this problem?
>>>>
>>>> Any help is appreciated.
>>>> Thank you very much!
>>>> Max
>>>>
>>> -- 
>> 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 golan...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/golang-nuts/5d33d2f0-6043-44cc-8c6a-6da4f9cd1dc0o%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/golang-nuts/5d33d2f0-6043-44cc-8c6a-6da4f9cd1dc0o%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank
>

-- 
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/2821f8c9-c9a2-4a6b-b578-c59c7bd71940o%40googlegroups.com.


[go-nuts] How to find repeated string?

2020-08-19 Thread
Hello everyone:
I use golang with Win10. The version of golang which I'm using is go1.15.
I want to find out the repeated string.
For example, given a string which is "1134534534534534".
I want the output string to be "345"
I've tried to 
Could anyone help me to solve this problem?

Any help is appreciated.
Thank you very much!
Max

-- 
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/94f77c6a-10fe-42a1-8ed9-ed63706b30e3o%40googlegroups.com.


Re: [go-nuts] How to find repeated string?

2020-08-19 Thread
Hello!
This <https://play.golang.org/p/vPqBAUroadV> is the code which I'm trying.
The generation of map is the candidates from the string s1.
However, the answer should be "345", which the count is not the most.

Thanks for your replying.
Max


Jan Mercl於 2020年8月19日星期三 UTC+8下午4時31分09秒寫道:
>
> On Wed, Aug 19, 2020 at 10:07 AM 洪嘉鴻 > 
> wrote: 
>
> > Hello everyone: 
> > I use golang with Win10. The version of golang which I'm using is 
> go1.15. 
> > I want to find out the repeated string. 
> > For example, given a string which is "1134534534534534". 
> > I want the output string to be "345" 
> > I've tried to 
> > Could anyone help me to solve this problem? 
>
> It would be nice if you can show the code that you wrote in an attempt 
> to solve this problem. Someone may then point out where a mistake was 
> made and/or suggest a better solution. 
>

-- 
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/3da3891b-9bb7-4981-9262-03708aad1d7do%40googlegroups.com.


Re: [go-nuts] How to find repeated string?

2020-08-20 Thread
Hello everyone,
I'll try the methods mentioned above.

Thanks for your replying.
Max

-- 
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/d79952c7-57f8-4bde-9d38-474ced14d08fo%40googlegroups.com.