[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",

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

[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

[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

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

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

2019-10-13 Thread
tps://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

[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

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

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

2019-10-14 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

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

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

2019-10-14 Thread
k 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: > &

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

2020-04-10 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

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

2020-04-10 Thread
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, Apri

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!

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

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 muc

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,

[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日星期五

[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

[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

[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

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

[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

[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

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

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

2020-03-25 Thread
meout, 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 fo

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

2020-03-27 Thread
line > <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 ser

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

2020-03-26 Thread
use 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 >

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

2020-03-26 Thread
line > <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 ser

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

[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

[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日星期六

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

2020-05-04 Thread
2.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: &g

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

2020-05-04 Thread
hat 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&

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

2020-05-05 Thread
at 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,

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

2020-05-05 Thread
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

[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日星期五

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

2020-05-05 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 洪嘉鴻 >

[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

[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

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

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

2020-08-19 Thread
TC+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 &q

[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

[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

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

2020-07-09 Thread
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