[go-nuts] NullTime in sql package ?

2017-12-10 Thread Tamás Gulácsi
Time.IsZero is enough for me. -- 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. For more options, visit

Re: [go-nuts] Breaking change: reflect.StructOf: field 0 has no name

2017-12-10 Thread Ian Lance Taylor
On Sun, Dec 10, 2017 at 8:46 AM, wrote: > > I had some code that I didn't touch for a while and now it seems it's > broken. It panics with `reflect.StructOf: field 0 has no name` at runtime. > Wasn't Go supposed to have some sort of compatibility promise? > > After a while I've

[go-nuts] Breaking change: reflect.StructOf: field 0 has no name

2017-12-10 Thread mihai
I had some code that I didn't touch for a while and now it seems it's broken. It panics with `reflect.StructOf: field 0 has no name` at runtime. Wasn't Go supposed to have some sort of compatibility promise? After a while I've found this[1] issue which seems to be the reason why my program

Re: [go-nuts] Any way to run functions in independent threads/processes in go?

2017-12-10 Thread Justin Israel
On Sun, Dec 10, 2017, 8:38 PM shockme wrote: > Hi, > > I'd like to know if there is any way to run go functions in independent > threads/process, just like multiprocessing.Pool.apply. > If this refers to Python's multiprocessing.Pool.apply, I can say that this exists

[go-nuts] Re: Webservices with Windows Authentication

2017-12-10 Thread snmed
Hi Paul Thank you for your answer. Maybe i wasn't clear, but we do not have problems with direct user authentication, as we use ADFS and OAuth (Token format JWT) to authenticate users. Our problem is the authentication between webservices and web applications that running under group managed

[go-nuts] Re: Webservices with Windows Authentication

2017-12-10 Thread snmed
Hi Mike Thank you for the links, they are looking interesting. I will have a deeper look into it and try to build a working example. Cheers Sandro Am Sonntag, 10. Dezember 2017 04:22:43 UTC+1 schrieb ancientlore: > > I haven't done it, but these two might be a starting point. > >

Re: [go-nuts] Calling Julia from Go

2017-12-10 Thread Jason E. Aten
Julia ships as a set of libraries and a thin repl prompt executable that loads them. Here is a simple example of calling Julia from Go. https://github.com/glycerine/golang-embed-julia On Tuesday, August 22, 2017 at 3:21:25 AM UTC-5, mrec...@gmail.com wrote: > > Unfortunately, Julia cannot be

Re: [go-nuts] NullTime in sql package ?

2017-12-10 Thread Rodolfo
I prefer to work with milliseconds, this is suitable in any language, os and applications. 2017-12-10 17:26 GMT-04:00 Liviu G : > Does anyone know why we don't have a NullTime like NullString in > database/sql package ? > We shouldn't need to copy/paste this code in various

[go-nuts] Any way to run functions in indepent thread/processes?

2017-12-10 Thread Tamás Gulácsi
goroutines started with the "go" keyword are run on different OS threads. As go doesn't have GIL as CPython does, no need for multiprocessing. Though I use it for plugins, with hashicorp/go-plugin. -- You received this message because you are subscribed to the Google Groups "golang-nuts"

Re: [go-nuts] Any way to run functions in independent threads/processes in go?

2017-12-10 Thread Jesse McNelis
On Sun, Dec 10, 2017 at 6:38 PM, shockme wrote: > Hi, > > I'd like to know if there is any way to run go functions in independent > threads/process, just like multiprocessing.Pool.apply. > Go has goroutines to allow for running code on different threads. Running a Go

[go-nuts] NullTime in sql package ?

2017-12-10 Thread Liviu G
Does anyone know why we don't have a NullTime like NullString in database/sql package ? We shouldn't need to copy/paste this code in various projects or depend on the driver specific NullTime (for postgres for example), right ? type NullTime struct { time.Time Valid bool } func

[go-nuts] Re: Why are can't struct field types not be used as types

2017-12-10 Thread Kevin Malachowski
Why not name the inner type? https://play.golang.org/p/8hyMLUVbCp -- 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. For

[go-nuts] Best way to add retries to existing library using net/http.Client?

2017-12-10 Thread Alex Buchanan
I'm considering adding http client retries to an existing library, owned by someone else, in order to add resiliency to errors such as http 503. I'd like to keep the changes as minimal as possible, with maximum effect, as usual. I'm eyeing http.Client.Transport. Possibly I could use that to