Re: [go-nuts] A problem about Happens Before

2021-02-23 Thread sanye
uot; You start a new goroutine reading `a`, so it should be clear, that when the assignment happens, there is a separate goroutine running that might read from it at the same time. On Tue, Feb 23, 2021 at 8:51 AM sanye <mailto:xba...@gmail.com>> wrote: Hello Gophers,a question b

[go-nuts] A problem about Happens Before

2021-02-22 Thread sanye
Hello Gophers,a question bothers me while reading the doc: The Go Memory Model package main var a string func f() { print(a) } func hello() { a = "hello, world\n" go f() } func main() { hello() } This code snippet is OK But if I exchange the 2 lines in funct

Re: [go-nuts] Re: political fundraising on golang.org!

2020-06-15 Thread sanye
e is being supported because the time is right, and that is perfectly okay. —Sam /    no, we can, maybe put more banners on the page?/ On Mon, Jun 15, 2020, at 21:53, sanye wrote: Because there are hundreds or thousands of initiatives to support suffering and dying people in African, Asia

Re: [go-nuts] Re: political fundraising on golang.org!

2020-06-15 Thread sanye
On 6/15/20 9:48 PM, Space A. wrote: Because there are hundreds or thousands of initiatives to support suffering and dying people in African, Asian, Eastern European, and what else countries that will never be supported by top banner at golang.org.     That's right. On Monday, June 15, 202

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

2020-04-08 Thread sanye
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  and I could build GUI executable which can work on Windows. However, I couldn't bui

[go-nuts] go1.14/go1.14.1 missing some debug information

2020-03-31 Thread sanye
Hello gophers, I have a problem when debugging with gdb using go1.14/1.14.1, set a breakpoint on entrypoint will not show line and file information, but go1.13.9 and older versions have, here is the detail demo.go package main func main() { println("hello world") } build

Re: [go-nuts] Re: json to golang struct definition lib

2020-03-26 Thread sanye
ursday, 26 March 2020 00:05:01 UTC, sanye wrote: Hello gophers, I found an interesting project: https://github.com/mholt/json-to-go <https://github.com/mholt/json-to-go> , which translate given json data into golang struct definition, it's very useful when deal

[go-nuts] json to golang struct definition lib

2020-03-25 Thread sanye
works like code generation, so I ported it to golang: https://github.com/kumakichi/json-to-go Any feedback are appreciated. sanye -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails fr