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 洪嘉鴻 > 
> 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.


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

2020-05-04 Thread Kurtis Rader
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/CABx2%3DD92kYLoTOJTRLkPpU8dFPwO7_1hP6n564%2BpUOHvvPzehQ%40mail.gmail.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 
>> .
>> 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] Re: About text-based user interface for Windows and Linux

2020-05-04 Thread Kurtis Rader
On Mon, May 4, 2020 at 7:13 PM 洪嘉鴻  wrote:

> I tried to get and install the package
> .
> 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/CABx2%3DD-J_pkX08z94WKTKWYWYLv_FXq0ZqMt5pRv7uoe1%2Baa_Q%40mail.gmail.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 
.
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  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 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
>  
> 
> .
>
>

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

-- 
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/F5CD53A9-7FBE-4617-9594-FC648DEA3F9B%40ix.netcom.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.


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

2020-05-03 Thread Jason E. Aten
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/fee07ca8-bae9-4983-9ee1-b68c818c44d2%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-01 Thread Jason E. Aten
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/2f030bca-92fb-4e3c-ab75-26353dc0c249%40googlegroups.com.