[go-nuts] Generics question

2022-03-21 Thread Sankar P
46:11: w.Annotations undefined (type V has no field or method Annotations) Name and Annotations are methods available in both the Deployment and the StatefulSet structs. Thanks. -- Sankar P http://psankar.blogspot.com -- You received this message because you are subscribed to the Google Groups

[go-nuts] Go Documentation for private github projects

2021-02-19 Thread Sankar P
is the recommended way now. Also, we are in GCP and so if there is some easy hack to get this deployed in GCP via a single click or some such, that will also be good. Any pointers ? -- Sankar P http://psankar.blogspot.com -- You received this message because you are subscribed to the Google

Re: [go-nuts] Run a goroutine until a channel receives a message

2021-01-13 Thread Sankar P
> > if `ws.Read` returns after a reasonable timeout, you can perform a > non-blocking receive on the quit channel to see if it has been > closed/something has been sent to it: > > select { > case <-quit: > break > default: >

Re: [go-nuts] Re: go modules and local packages

2020-08-09 Thread Sankar P
> I had the same situation and this worked perfectly: > > replace mylib => ../mylib > > If it doesn't - check paths, name of the "mylib" module, etc Thanks. It worked. I strongly feel like I tried the same yesterday and it didn't work, but probably mis-typed the name in the module. -- You

Re: [go-nuts] go modules and local packages

2020-08-08 Thread Sankar P
> Then why are they in a monorepo? > > AFAIK monorepos for strictly controlled dependenies and easier refactorings. > > If two part needs different versions for something common, then they should > live and evolve separately. This is a subset of a larger mono-repo. This repo has sources for

Re: [go-nuts] go modules and local packages

2020-08-08 Thread Sankar P
> Use one go.mod pee repo. That won't be possible. It is a monolithic repo. svc1 and svc2 may need two different versions of a common dependency. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

Re: [go-nuts] go modules and local packages

2020-08-08 Thread Sankar P
> You could try moving mylib to your $GOPATH/src/, and > import "mylib" > in the services. I tried that but could not get `go run cmd/svc1.go` from trying to checkout a non-existent url (for the `mylib`). Can you share the contents of the `go.mod` file for svc1 and mylib ? -- You received

Re: [go-nuts] Re: RFC Package structuring

2020-02-29 Thread Sankar P
3-acd7-4fcd-8178-fb99a2e56028%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/09bb6e93-acd7-4fcd-8178-fb99a2e56028%40googlegroups.com?utm_medium=email_source=footer> > . > -- Sankar P http://psankar.blogspot.com -- You received this message because you are sub

Re: [go-nuts] The go way to compare values against an enum

2019-04-15 Thread Sankar P
sage because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/golang-nuts/cs1DE0jOOfA/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > gola

Re: [go-nuts] Casting across types

2019-04-15 Thread Sankar P
n Mon, 15 Apr 2019 at 11:32, Sankar P wrote: > >> Playground url: https://play.golang.org/p/tDT7xCJJ_XN >> >> திங்., 15 ஏப்., 2019, பிற்பகல் 4:01 அன்று, Sankar < >> sankar.curios...@gmail.com> எழுதியது: >> >>> I have the following go code: >>>

Re: [go-nuts] Casting across types

2019-04-15 Thread Sankar P
ics, send an email to > golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Sankar P http://psankar.blogspot.com -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe fro

Re: [go-nuts] The go way to compare values against an enum

2019-04-15 Thread Sankar P
gt; day := "123819283" // Invalid day >> >> } >> ``` >> >> I want to evaluate if the string variable `day` is one of the valid >> permitted values for the [Ww]eekday custom type. What is the recommended / >> right go way of doing this ? >&g

Re: [go-nuts] Re: go src organization question

2018-10-21 Thread Sankar P
tps://github.com/golang/go/wiki/Modules but I could not find out any >> recommended way for this. Any help on how I can do this ? Do I need to >> create `cmd` or `src` folders in our git repo ? OR do we need to do >> something else ? Any links for blogposts, tutorials, documentation, videos >&

Re: [go-nuts] golang maps; using slice as a key

2018-05-23 Thread Sankar P
.org/p/BJM0H_rYNdb >> >> If someone can explain the output I would be thankful. It feels like a >> bug to me, but I am sure that I am only misunderstanding and it may not be >> a bug. >> >> Thanks. >> >> >> 2018-05-23 11:45 GMT+05:30 Sankar P <sa

Re: [go-nuts] golang maps; using slice as a key

2018-05-23 Thread Sankar P
sure that I am only misunderstanding and it may not be a bug. Thanks. 2018-05-23 11:45 GMT+05:30 Sankar P <sankar.curios...@gmail.com>: > Use an array instead of a slice. An array has a fixed size and can be used >> as a key to a map >> >> https://play.golang.org/p/x

Re: [go-nuts] golang maps; using slice as a key

2018-05-23 Thread Sankar P
t;> Appending: [-1 -1 2] >> Final arr is: [[-1 -1 2] [-1 -1 2]] >> >> I am not really able to understand why the above code works so. The >> "Appending" and the "Final arr" statements have different values. >> >> -- >> Sankar P >>

Re: [go-nuts] golang maps; using slice as a key

2018-05-23 Thread Sankar P
so. The "Appending" and the "Final arr" statements have different values. -- Sankar P http://psankar.blogspot.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

Re: [go-nuts] Re: RFC - Review request for a project done in Golang

2018-05-15 Thread Sankar P
too after I feel satisfied with the code. 2018-05-14 20:54 GMT+05:30 Sankar P <sankar.curios...@gmail.com>: > 2018-05-14 20:39 GMT+05:30 <matthewju...@gmail.com>: > >> They might have been looking for something like this: >> >> github.com/psankar/network-monit

Re: [go-nuts] Re: RFC - Review request for a project done in Golang

2018-05-14 Thread Sankar P
gt;> >> Thanks. >> >> Sankar >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit https://groups.google.com/d/to > pic/golang-nuts/SpoC7siQrS8

Re: [go-nuts] Re: RFC - Review request for a project done in Golang

2018-05-14 Thread Sankar P
//groups.google.com/d/ > topic/golang-nuts/SpoC7siQrS8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Sankar P http://psankar.blogspot.com

Re: [go-nuts] Re: Golang HTTP POST handling

2018-02-20 Thread Sankar P
essage because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/golang-nuts/HxLT6NlzKlY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > gola

Re: [go-nuts] Re: Golang HTTP POST handling

2018-02-20 Thread Sankar P
t;> > -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/golang-nuts/HxLT6NlzKlY/unsubscribe. > To unsubscribe from this group and all its top

Re: [go-nuts] Cloud Functions Golang Support

2018-02-07 Thread Sankar P
Hey Googlers, Any help on this ? I would love to choose GCE, but will have to go with AWS if there are no updates here. Thanks. 31 ஜன., 2018 முற்பகல் 12:08 அன்று, "Sankar" எழுதியது: > Hi > > When is Golang support for Cloud functions in GCP expected ? I am starting

Re: [go-nuts] Re: appengine golang logs

2017-11-04 Thread Sankar P
provides a more > "conventional" environment for your programs. There are some tradeoffs > compared with App Engine Standard, but it should be easier to stay portable. > > David > > [1]: https://cloud.google.com/appengine/docs/flexible/go/ > writing-application-logs > >

Re: [go-nuts] Re: appengine golang logs

2017-11-04 Thread Sankar P
, for one, though wish that there was a simpler way. 2017-11-04 12:47 GMT+05:30 Gulácsi Tamás <tgulacs...@gmail.com>: > Sth. along https://play.golang.org/p/BwlbkxMLdw ? > > Sankar P <sankar.curios...@gmail.com> ezt írta (időpont: 2017. nov. 4., > Szo, 8:10): > >> Th

Re: [go-nuts] Re: appengine golang logs

2017-11-04 Thread Sankar P
d/ > topic/golang-nuts/XbhcR5eFdno/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Sankar P http://psankar.blogspot.com -- You received this

Re: [go-nuts] Re: appengine golang logs

2017-11-03 Thread Sankar P
>> Thanks. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/golang-nuts/XbhcR5eFdno/unsubscribe. > To unsubscribe from t

Re: [go-nuts] Re: Appengine and main package

2017-11-02 Thread Sankar P
; To unsubscribe from this group and all its topics, send an email to > golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Sankar P http://psankar.blogspot.com -- You received this message because you are subscribed

Re: [go-nuts] Tools for 80 column split for golang

2017-09-07 Thread Sankar P
bably hard to read due to being a too > large or too complex expression, not the line length per se. My preferred > solution would be to split it up with a variable or two. I don't think > there is a tool for that, it requires human consideration. > > //jb > > -- Sankar P http

Re: [go-nuts] Re: golang continuous deployment & gitlab

2017-08-20 Thread Sankar P
ther layer >> which may cause some unknown problems (performance, networking, etc.) which >> I do not want to end up debugging. >> >> Any advises or suggestions or links that would help me ? Thanks. >> >> Sankar >> > -- > You received this message because you a

Re: [go-nuts] Arrays, structs and marshalJSON

2017-08-09 Thread Sankar P
nd UnmarshalJSON function for the > []Item too (after making it a custom struct) ? > > > > Or is this a bug, or do I misunderstand anything ? > > The issue is that you have defined MarshalJSON as a method with a pointer > receiver, while the JSON marshaller will access it through an

Re: [go-nuts] letsencrypt, localhost and autocert

2017-06-09 Thread Sankar P
Thank you so much Axel Wagner. I was able to get everything working, once I added the A record. Everything worked so magically together correctly :) 2017-06-07 23:33 GMT+05:30 Axel Wagner <axel.wagner...@googlemail.com>: > On Wed, Jun 7, 2017 at 7:22 PM, Sankar P <sankar.curios.

Re: [go-nuts] letsencrypt, localhost and autocert

2017-06-07 Thread Sankar P
hould I be doing extra ? Thank you everyone for the responses. -- Sankar P http://psankar.blogspot.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 i

Re: [go-nuts] Re: Deploying go https servers

2017-03-10 Thread Sankar P
t;> >> Sankar >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/golang-nuts/sTsDhJLKTqU/unsubscribe. > To unsubscribe

Re: [go-nuts] Deploying go https servers

2017-03-09 Thread Sankar P
/d/to >>> pic/golang-nuts/sTsDhJLKTqU/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> golang-nuts...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> &

Re: [go-nuts] Deploying go https servers

2017-03-08 Thread Sankar P
-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Sankar P http://psankar.blogspot.com -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop re

Re: [go-nuts] Re: gRPC golang server and client testing

2016-12-12 Thread Sankar P
ribe. > To unsubscribe from this group and all its topics, send an email to > golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Sankar P http://psankar.blogspot.com -- You received this message because you are subscribed to t

Re: [go-nuts] protobuf go and pointers

2016-08-03 Thread Sankar P
sent or not. Using a pointer is how the Go > implementations indicates whether the field is present. > > This is better in proto3. If you can switch to proto3, do so. > > Ian -- Sankar P http://psankar.blogspot.com -- You received this message because you are subscribed to the Googl

Re: [go-nuts] Extracting table data out of PDFs

2016-07-11 Thread Sankar P
2016-07-11 15:34 GMT+05:30 Sankar P <sankar.curios...@gmail.com>: >> I don't know if it does what you want, but have you looked at >> https://godoc.org/rsc.io/pdf ? > > It seems to be unmaintained. I tried loading a complex PDF with plenty > of tables and it hung i

Re: [go-nuts] Extracting table data out of PDFs

2016-07-11 Thread Sankar P
> I don't know if it does what you want, but have you looked at > https://godoc.org/rsc.io/pdf ? It seems to be unmaintained. I tried loading a complex PDF with plenty of tables and it hung infinitely on Content() call in the first page. I lost interest after that. Thanks. -- Sankar

Re: [go-nuts] Extracting table data out of PDFs

2016-06-30 Thread Sankar P
is 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 https://groups.google.com/d/opto