Re: [go-nuts] Windows vs Linux ReadString

2019-07-20 Thread Michael Jones
show some code. On Sat, Jul 20, 2019 at 6:15 PM Allan Edwards wrote: > Wow, thanks for responding guys. So I ran my exe on linux without goland > and bam the readstring blocked as needed. For some reason the ReadString > call is not blocking inside of goland. It seems like a great IDE but I

Re: [go-nuts] Windows vs Linux ReadString

2019-07-20 Thread Allan Edwards
Wow, thanks for responding guys. So I ran my exe on linux without goland and bam the readstring blocked as needed. For some reason the ReadString call is not blocking inside of goland. It seems like a great IDE but I found a weird bug. On the Windows side the ReadString blocks inside of

Re: [go-nuts] Does reducing capacity of a slice return memory?

2019-07-20 Thread Wojciech S. Czarnecki
On Fri, 19 Jul 2019 18:47:36 -0700 (PDT) Andrey Tcherepanov wrote: > knows that there is only one reference to the remaining part, > and that part is "small" This "is it small"? is a check that would be performed for all, while only tiny percent would benefit off it. >>> I understand that it

Re: [go-nuts] Windows vs Linux ReadString

2019-07-20 Thread Ian Lance Taylor
On Sat, Jul 20, 2019 at 1:48 PM wrote: > > I started a go project on windows that leveraged readstring to read command > line input. It blocked on Windows. I just ran my code on Linux and the > readstring does not block at all. Can someone explain this to me? We will be able to help you

[go-nuts] Windows vs Linux ReadString

2019-07-20 Thread wallanedwards
Guys I started a go project on windows that leveraged readstring to read command line input. It blocked on Windows. I just ran my code on Linux and the readstring does not block at all. Can someone explain this to me? Thanks in advance, Allan -- You received this message because you

Re: [go-nuts] Get struct type , save and reconstruct empty struct later

2019-07-20 Thread Vasiliy Tolstov
сб, 20 июл. 2019 г. в 17:17, Martin Schnabel : > > If you only need any unnamed struct type you can create one with reflect > from the field information that you can write to text somewhere. > > https://godoc.org/reflect#StructOf > > These unnamed struct types however do not have any

[go-nuts] Re: Need help to learn go lang

2019-07-20 Thread Leo R
Two books immediately come to mind (1) Donovan & Kernighan "The Go Programming Language", 2016 (2) Tapir Liu "Go 101", 2019 [https://go101.org/] Book (1) is to Go what K is to C. The book (2) is a useful complementary exposition. Both books assume some familiarity with programming in

[go-nuts] [ANN] SFTPGo: Full featured and highly configurable SFTP server software

2019-07-20 Thread nicola . murino
Hello all, I'm pleased to announce SFTPGo https://github.com/drakkan/sftpgo cheers, Nicola -- 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] Get struct type , save and reconstruct empty struct later

2019-07-20 Thread Martin Schnabel
If you only need any unnamed struct type you can create one with reflect from the field information that you can write to text somewhere. https://godoc.org/reflect#StructOf These unnamed struct types however do not have any methods and do not wrap embedded named type methods. Otherwise

Re: [go-nuts] Re: Build issues on FreeBSD ZoF "unexpected stale targets"

2019-07-20 Thread Steven Hartland
You might want to see if dtrace can shed some light on this? On Sat, 20 Jul 2019 at 01:25, wrote: > > > On Friday, July 19, 2019 at 2:24:30 PM UTC-7, Steven Hartland wrote: >> >> Mat is actually running a non-standard kernel, with the ZFS filesystem >> from the core OS replaced with a ZFS

Re: [go-nuts] Re: About the Google logo on the new Go website

2019-07-20 Thread Henrik Johansson
Reports of violations are not violations. I assume the standard coc procedure kicks in to determine if violations occurred or not. On Sat, Jul 20, 2019, 10:24 Jan Mercl <0xj...@gmail.com> wrote: > On Fri, Jul 19, 2019 at 10:39 PM Cassandra Salisbury > wrote: > > > > I encourage everyone to take

Re: [go-nuts] Get struct type , save and reconstruct empty struct later

2019-07-20 Thread Vasiliy Tolstov
Thanks, something like this, but i need to store type in string or []byte in db, and based on this create new empty struct. сб, 20 июл. 2019 г., 10:55 Jan Mercl <0xj...@gmail.com>: > On Sat, Jul 20, 2019 at 9:28 AM Vasiliy Tolstov > wrote: > > > Hi. I have reflection based question. > > I need

Re: [go-nuts] Re: About the Google logo on the new Go website

2019-07-20 Thread Jan Mercl
On Fri, Jul 19, 2019 at 10:39 PM Cassandra Salisbury wrote: > > I encourage everyone to take a look at the code of conduct. I have had > multiple reports from this particular thread. I, for one, have no idea why. But I guess Kafka would be delighted by this mysteriosity. -- You received this

Re: [go-nuts] Get struct type , save and reconstruct empty struct later

2019-07-20 Thread Jan Mercl
On Sat, Jul 20, 2019 at 9:28 AM Vasiliy Tolstov wrote: > Hi. I have reflection based question. > I need to store type of struct passed to func and later based on this stored > type reconstruct empty needed struct. > Does this possible ? Not sure I understood the question:

[go-nuts] Get struct type , save and reconstruct empty struct later

2019-07-20 Thread Vasiliy Tolstov
Hi. I have reflection based question. I need to store type of struct passed to func and later based on this stored type reconstruct empty needed struct. Does this possible ? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from