[go-nuts] Generics question

2022-03-21 Thread Sankar P
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

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

2021-04-10 Thread Sankar P
p84/unsubscribe. > To unsubscribe from this group and all its topics, 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/3b3d0712-f7ee-4368-8768-bcf649b0ba45n%40googlegroups.com >

[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 receiv

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 abou

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 e

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 th

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

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

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
uot; // Invalid day >> 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 w

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

2018-10-21 Thread Sankar P
es, to work with go >> modules ? I tried reading through >> https://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 >>

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

2018-05-23 Thread Sankar P
>> 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 : >> >>> Use an arr

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 : > 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/xxxmrwpx08A >> > >

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

2018-05-23 Thread Sankar P
var arr [][]int >> for mem := range m { >> fmt.Println("Appending: ", mem[:]) >> arr = append(arr, mem[:]) >> } >> fmt.Println("Final arr is:", arr) >> >> the output is: >> >> Appending: [-1 0 1] >> Appending:

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

2018-05-22 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 from

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 : > 2018-05-14 20:39 GMT+05:30 : > >> They might have been looking for something like this: >> >> github.com/psankar/network-monitor >> package monitor code files >> cmd/ >&

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

2018-05-14 Thread Sankar P
s. >> >> 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/unsubscribe. > To unsubscri

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

2018-05-14 Thread Sankar P
dividually, with the review comments. >> >> 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

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

2018-02-20 Thread Sankar P
;<< req.Form is nil >> } >> } >> >> What am I doing wrong ? I do get the POST request but without the >> password fields as part of the POST body. Any help ? >> >> Thanks. >> > -- > You received this message because you are su

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

2018-02-20 Thread Sankar P
is 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 topics, send an email to >

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 > off a new project and would

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

2017-11-04 Thread Sankar P
quot;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 > > > On Sat, Nov 4, 2017,

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 : > Sth. along https://play.golang.org/p/BwlbkxMLdw ? > > Sankar P ezt írta (időpont: 2017. nov. 4., > Szo, 8:10): > >> There is no log.SetWriter in either the builtin log package or

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

2017-11-04 Thread Sankar P
o/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 message because you are su

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

2017-11-03 Thread Sankar P
t; log.SetOutput(appengine.DefaultLogger) >> } >> >> in my main file ? This way, I get to make my code not locked to google >> cloud and also can deploy existing code which uses log already. >> >> Any pointers ? >> >> Thanks. >> > -- > You received th

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

2017-11-02 Thread Sankar P
nd 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 the Google Groups "golang-nuts&quo

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

2017-09-07 Thread Sankar P
oo 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://psankar.blogspot.com -- You received this

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

2017-08-20 Thread Sankar P
e 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 are subscrib

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

2017-08-09 Thread Sankar P
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 interface > value that is not addressable. Instead, de

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 : > On Wed, Jun 7, 2017 at 7:22 PM, Sankar P > wrote: > >> >> 2017-06-06 22:52

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

2017-06-07 Thread Sankar P
veryone 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 it, send an email to golang-nuts+unsubscr...@google

Re: [go-nuts] Re: golang regex question

2017-06-02 Thread Sankar P
, please see: https://stackoverflow.com >> /questions/44321199/golang-extract-unique-key-value-from-a- >> key-value-pair-string-using-regex >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "golang-nuts" group. > To unsubs

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

2017-03-10 Thread Sankar P
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 from this g

Re: [go-nuts] Deploying go https servers

2017-03-09 Thread Sankar P
/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. >>> >> >> >> >> -- >> Sankar P >> http:/

Re: [go-nuts] Deploying go https servers

2017-03-08 Thread Sankar P
legroups.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 receiving emails from i

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

2016-12-12 Thread Sankar P
om 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 the Google Groups "

Re: [go-nuts] protobuf go and pointers

2016-08-03 Thread Sankar P
cognized []byte `json:"-"` >> } >> >> Why is the A field here a pointer instead of a normal float64 ? > > Because proto2 records not only the value of each field, but also > whether the field is present or not. Using a pointer is how the Go > implementa

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 : >> 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 i

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

2016-07-11 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/8NisCMXjQIw/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > g

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. -- Sa

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

2016-06-30 Thread Sankar P
>> "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/optout. > > -- Sankar P http://psankar.blo