[go-nuts] Cloud Functions Golang Support

2018-01-30 Thread Sankar
Hi When is Golang support for Cloud functions in GCP expected ? I am starting off a new project and would love to use GCP over AWS, but lambda already supports Golang. Is there an approximate ETA for Golang in Google Cloud functions ? Thanks. -- You received this message because you are subs

[go-nuts] Golang HTTP POST handling

2018-02-20 Thread Sankar
Hi, I have a Golang HTTP server which is consumed by mobile Apps via HTTP. For one workflow (reset-password) alone, I needed a web interface. So instead of creating a new different webapp, I decided to make an endpoint emit text/html instead of JSON and then serve a static HTML page, which wi

[go-nuts] Sorting slice of structs

2018-04-10 Thread Sankar
Hi I have the following code: type Point struct { Xint Name string } arr := []Point{ Point{1, "One"}, Point{3, "Three"}, Point{2, "Two"}, Point{4, "Four"}, } log.Println("Before Sorting: ", arr) sort.Slice(arr, func(i, j int) bool { return arr[i].X < arr[i].X }) log.Println("After Sorting:

Re: [go-nuts] Sorting slice of structs

2018-04-10 Thread Sankar
ah damn. Thanks everyone :) On Wednesday, 11 April 2018 00:05:00 UTC+5:30, Jan Mercl wrote: > > > On Tue, Apr 10, 2018 at 8:29 PM Sankar > wrote: > > > Any help on how I can get arr sorted in the above code ? > > Just a typo: https://play.golang.org/p/vhbo8OIrh-

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

2018-05-14 Thread Sankar
n even email me, individually, with the review comments. Thanks. Sankar -- 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...@googlegro

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

2018-05-22 Thread Sankar
Is there a way to use a slice as a key to a map ? If I try, I get a compilation error: `invalid map key type`. I tried creating a custom type, which contains an array as the element. However, I could not find out what method to implement for my custom type(such as: func (i *myType) Equal(j *my

[go-nuts] go src organization question

2018-10-21 Thread Sankar
Hi, We were using go 1.7 until recently and now want to switch to 1.11 and start using go modules. Currently our source organization is as follows: ~/go/src/gitlab.com/example/ | | example/

[go-nuts] serverless frameworks

2019-01-22 Thread Sankar
Hi Now that Google has released support for Cloud Functions, I am curios to know are there any frameworks that the community is already using for standardizing the serverless deployments. A few things that I would be happy to have are: 1) Single command deploy of multiple functions based on wh

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

2019-04-15 Thread Sankar
Hi, I have the following Go type. ``` type weekday string const ( Monday weekday = "Monday" Tuesday = "Tuesday" . . . ) ``` Now I have a function that receives a string parameter and I want to evaluate if it s a valid weekday or not. Say: ``` func handler(w http.ResponseWriter, r *h

[go-nuts] Casting across types

2019-04-15 Thread Sankar
I have the following go code: ``` type A map[string]interface{} type B map[string]interface{} func f(a A) { fmt.Println(a) } func main() { var b B b = make(map[string]interface{}) i := interface{}(b) f(i.(A)) } ``` This code panics when I try to convert the B instance to type A. What is the ri

[go-nuts] golang on ec2; terraform, salt, etc.

2017-07-25 Thread Sankar
Hi I have a golang REST api server. I cross-compile the monolithic golang binary with GOOS=linux GOARCH=amd64 from my macbook (developer machine) and then scp the binary to a ec2 vm. I have written a systemd service file to manually bring down the service before the scp and bring up after the s

[go-nuts] Arrays, structs and marshalJSON

2017-08-09 Thread Sankar
Hi, There is a difference in the way MarshalJSON of a struct is called when an instance of a struct is either part of an array or embedded directly inside another object. I am not sure if it is a bug or if it is the intended behavior. Please see the Go source available at: https://play.golang

[go-nuts] golang continuous deployment & gitlab

2017-08-19 Thread Sankar
, 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 subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, sen

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

2017-09-06 Thread Sankar
rs.LoggingHandler( os.Stderr, auth.Trace( auth.IsAuthenticated( auth.IsReferrer(http.HandlerFunc(lh.AddReferrerHandler)), ), ), ), ) ``` Google groups will make the indents in the above snippet display wrong, but you get the idea. Are there any tools (Similar to prettier for javascript) or techniq

[go-nuts] Appengine and main package

2017-10-31 Thread Sankar
Hi I am evaluating appengine for a golang project. It is a simple REST server with a bunch of endpoints. I am currently deploying it in AWS, in an EC2 instance. I have written a systemd script file which will take care of launching the webserver as a systemd service (so that it is always up etc

[go-nuts] appengine golang logs

2017-11-03 Thread Sankar
Hi I have a golang file where I have code like: log.Fatal("My error message: ", err) When the above statement is executed, In the appengine logviewer, I get something like: panic: os.Exit called goroutine 1 [running]: os.Exit(0x1) go/src/os/proc.go:58

[go-nuts] acme, letsencrypt and different HTTPS ports

2017-11-16 Thread Sankar
Hi I have an EC2 vm where I want to run two go https servers on different ports. I am using letsencrypt for the certificates and the code is like: server1.go: log.Fatal(http.Serve(autocert.NewListener("api1.example.com"), http.DefaultServeMux)) server2.go: log.Fatal(http.Serve(autocert.NewList

[go-nuts] .editorconfig for golang projects & github pr automated gofmt checks

2019-07-01 Thread Sankar
Hi We use github for our sources. Developers are free to choose their IDEs and tools. Sometimes, people end up committing sources using spaces instead of tabs, etc. Not all developers do goimports/gofmt on save. So, we want to automate this process. However, instead of adding git pre-commit hoo

[go-nuts] golang tool for splitting long lines

2019-11-14 Thread Sankar
program or as VSCode/Goland plugins. >From https://github.com/golang/go/issues/11915 I believe that go team may not address it as natively as gofmt/goimports. But are there any other hacks/tools that people already use to break long lines ? Thanks. Sankar -- You received this message because

[go-nuts] golang multiple go routines reading from a channel and performance implications

2019-11-21 Thread Sankar
We have a setup where we have a producer goroutine pumping in a few thousand objects into a channel (Approximately 2k requests per second). There are a configurable number of goroutines that work as consumers, consuming from this single channel. If none of the consumer threads could receive the

[go-nuts] httputil proxy integrity errors on serving hugo/nginx files

2019-12-04 Thread Sankar
I have a Go proxy server which will proxy the incoming requests to a different nginx service, where a bunch of static files generated from hugo are deployed. The Go proxy server code is: ``` func (w http.ResponseWriter, r *http.Request) { proxy := httputil.NewSingleHostReverseProxy(target)

[go-nuts] generating interfaces from proto3 (grpc)

2016-06-18 Thread Sankar
any way to define a proto grpc API which will work across a generic type of parameter ? Thanks. Sankar -- 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, sen

[go-nuts] Extracting table data out of PDFs

2016-06-30 Thread Sankar
Hi Are there any stable/production-quality golang libraries that people are aware of which could read and extract tabular data out of PDF documents ? Thanks Sankar -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

[go-nuts] Generating proto from go

2016-08-01 Thread Sankar
structs as members too. I saw https://github.com/kubernetes/kubernetes/tree/master/cmd/libs/go2idl which seem to be something related but not sure if it is restricted only to kubernetes sources or a generic solution. Has anyone tried doing something similar ? Sankar -- You received this

[go-nuts] protobuf go and pointers

2016-08-03 Thread Sankar
e. But if I have other structs as member elements in my structs, this code becomes even more complicated. Is there any way to generate code such that actual struct instances and datatype instances will be used instead of pointers ? Thanks. Sankar -- You received this message because you ar

[go-nuts] Minimizing golang docker images

2017-02-24 Thread Sankar
for reducing the docker image sizes for golang microservices but without creating two Dockerfiles for each service. Any help ? Thanks. Sankar -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] Deploying go https servers

2017-03-08 Thread Sankar
and easily (without depending on too many third party projects) on AWS. GKE does not exist in my region (India) and so cannot use Kube. Any pointers ? Thanks. Sankar -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

[go-nuts] docker multi-stage builds and small binary sizes

2017-04-27 Thread Sankar
Anyone aware of links explaining if-we-can/how-to create lean containers for golang http servers by using the new multi-stage build options in Docker ? Similar to: https://codefresh.io/blog/node_docker_multistage/ That would be very handy than doing GOOS=linux builds and then copying the binar

[go-nuts] golang regex question

2017-06-02 Thread Sankar
I have a go string dbConnStr1 := "user=someone password=something host=superduperhost sslmode=something" the k=v pair in this string may be in any order, for example: dbConnStr2 := "host=superduperhost user=someone password=something" Notice the difference in the key order and also the missin

[go-nuts] letsencrypt, localhost and autocert

2017-06-06 Thread Sankar
Hi I saw the tweet https://twitter.com/mholt6/status/848704744474292224 and decided to try out the code log.Fatal(http.Serve(autocert.NewListener("mydomain.com "), handler)) but when I try to visit: https://localhost:443, I get an error on the server console as: server n

[go-nuts] RFC Package structuring

2020-02-29 Thread Sankar
I am starting a new project (say `hello`) and I am totally confused about what package structure to use. I am going to go with a monolithic source repository which would be checked out under `~/src` directory in the developer machines. I have three golang binaries available in my project. 1)

[go-nuts] go modules and local packages

2020-08-08 Thread Sankar
Hi I have a monolithic source repository that is NOT in git, mercurial etc. The directory structure is: root | |--- mylib | | --- mylib.go | | --- go.mod |--- svc1 | | --- go.mod | | --- cmd | | svc1.go |--- svc2 | | --- go.mod | | ---

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

2021-01-13 Thread Sankar
I have a function that must be executed as a go routine infinitely until a message comes in a channel. For example: func readWebSocket(ws *websocket.socket, quit chan bool) { for { out, err = ws.Read() log.Println(out, err) } } Now I call this above function as a goroutine from ma

Re: [go-nuts] Go Documentation for private github projects

2021-02-21 Thread Sankar
On Saturday, 20 February 2021 at 15:58:30 UTC+5:30 mb0 wrote: > Hi, > this January a fork of gddo was was announced to this list. Take a look > https://godocs.io/ > Thanks a lot. This seems handy. > > Best regards > > On 20.02.21 08:13, Sankar P wrote: > > H

[go-nuts] go mod vendor without updating packages

2021-05-11 Thread Sankar
Hi, I have some packages with some versions in my `go.mod` including some indirect dependencies that are needed by some of my direct dependencies. In this, there is a particular version of grpc that I want to use (and not the latest). I add the specific version of grpc I want by: go mod edit

[go-nuts] grpc and golang struct tags

2021-11-27 Thread Sankar
Hi I have a database that has a column `2xxCode`. This database is part of a legacy system and I cannot make changes to this, as there are multiple applications that depend on this, and some of the applications are unchangeable. Now I want to create a new gRPC server in golang that has to inte

[go-nuts] gRPC for web applications with millions of users

2022-12-02 Thread Sankar
Hi, I have used gRPC for some simple applications, where the server is in Golang and the client is also another golang application. I have primarily worked in the backend and have done a lot of gRPC communication among the backend services using the likes of gRPC streams and golang. Now for th

[go-nuts] go-embed results in http 404

2023-09-02 Thread Sankar
I have the following go code where I try to embed a html file from a public directory and running into HTTP 404. What am I doing wrong ? Relevant code snippet: // go:embed public var public embed.FS func main() { // cd to the public directory publicFS, err := fs.Sub(public, "public")

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: Golang HTTP POST handling

2018-02-20 Thread Sankar P
; On Tuesday, February 20, 2018 at 10:16:57 AM UTC-6, Sankar wrote: > >> Hi, >> >> I have a Golang HTTP server which is consumed by mobile Apps via HTTP. >> >> For one workflow (reset-password) alone, I needed a web interface. So >> instead of creating a

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

2018-02-20 Thread Sankar P
Thanks. Will do. 2018-02-21 4:31 GMT+05:30 Andrew Watson : > You should, of course, consider adding some rigor such as CSRF protection > to that form! I'd suggest something like http://www. > gorillatoolkit.org/pkg/csrf for that! > > > On Tuesday, February 20, 2018 at 11

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

2018-05-14 Thread Sankar P
> Just my 2¢. > > > > 2018. május 14., hétfő 13:35:23 UTC+2 időpontban Sankar a következőt írta: >> >> Hi >> >> I was recently asked in an interview to write a golang program for a >> problem that involves working with a million nodes. I did write a program

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

2018-05-14 Thread Sankar P
some tests but I did not include them in the github repo. They were not very exhaustive, but just covered the basic cases, through a script that will add/remove files and contents. > Maybe you passed but there was a better candidate? > Could be. > > Matt > > On Monday, May 1

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] 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] golang maps; using slice as a key

2018-05-23 Thread Sankar P
lement. > > https://play.golang.org/p/9ZSRfAyOX4- > > @Bakul's solution sounds good but haven't tried to understand it clearly. > > > > > On Wednesday, 23 May 2018 11:46:15 UTC+5:30, Sankar wrote: >> >> Use an array instead of a slice. An array

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
mai 2018 09:59:53 UTC+2, Sankar a écrit : >> >> I extracted the confusing part alone, when appending to an array, the >> items are different than the resultant array into a separate go program. >> >> The Playground URL is: https://play.golang.org/p/BJM0H_rYNdb >>

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

2018-10-21 Thread Sankar P
. ஞாயி., 21 அக்., 2018, பிற்பகல் 11:32 அன்று, எழுதியது: > Hi Sankar, > > How many repos are you directly modifying? > > Most projects are likely following the simplest approach of using a single > module per repository, which typically would mean creating one go.mod file >

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

2019-04-15 Thread Sankar P
going to use an integer representation > (as the time package does <https://golang.org/pkg/time/#Weekday>, for > example). > > Hope this helps, > rog. > > > On Mon, 15 Apr 2019 at 09:52, Sankar wrote: > >> Hi, >> >> I have the following Go type

Re: [go-nuts] Casting across types

2019-04-15 Thread Sankar P
Playground url: https://play.golang.org/p/tDT7xCJJ_XN திங்., 15 ஏப்., 2019, பிற்பகல் 4:01 அன்று, Sankar < sankar.curios...@gmail.com> எழுதியது: > I have the following go code: > > ``` > type A map[string]interface{} > type B map[string]interface{} > > func f(a A) { &g

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] The go way to compare values against an enum

2019-04-15 Thread Sankar P
Whoa. I did not realise this. Thanks for the help. திங்., 15 ஏப்., 2019, பிற்பகல் 9:54 அன்று, Marvin Renich எழுதியது: > Roger and Jan have given you good answers, but I would like to comment > on another aspect of your code. > > * Sankar [190415 04:53]: > > type weekday st

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

2017-08-09 Thread Sankar P
aah. Damn it :-) Thanks a lot. I am hitting myself for missing this. 2017-08-09 16:40 GMT+05:30 Jakob Borg : > On 9 Aug 2017, at 12:26, Sankar wrote: > > > > Now for the same, Item object, the json.Marshal function returns two > different strings for the `Item` object. >

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

2017-08-20 Thread Sankar P
u root > > and after it is deployed, > > ansible-playbook -i hosts/production playbooks/site-state.yml > --ask-vault-pass --extra-vars "app_state=restart" -u root > > restarts systemd > > No docker in this setup, > > Hope it helps. > > Diego > > &

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

2017-09-07 Thread Sankar P
Even with most modern laptops, I found having 80 column limit is very useful, when we split panes and read code. May be it is just my personal preference :) 2017-09-07 12:05 GMT+05:30 Jakob Borg : > On 7 Sep 2017, at 06:10, Sankar wrote: > > > > Are there any tools available for

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] Re: appengine golang logs

2017-11-03 Thread Sankar P
> > On Friday, November 3, 2017 at 3:58:34 AM UTC-4, Sankar wrote: >> >> Hi >> >> >> I have a golang file where I have code like: >> >> >> log.Fatal("My error message: ", err) >> >> >> When the above statement is exec

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-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
Thanks. I did not know this. I assumed that the only difference between flexible and standard was the pricing, I was wrong. Thanks for the link. 2017-11-04 13:06 GMT+05:30 David Arroyo : > Sankar, > > Have you tried using the Flexible environment? Flex provides a more > &

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

2016-12-12 Thread Sankar P
I did not find any :( 2016-12-12 1:28 GMT+05:30 : > Would be interested to learn of if you found a good solution. > > > On Saturday, April 23, 2016 at 9:31:19 PM UTC+2, Sankar wrote: >> >> Hi >> >> I have a .proto file which I ran with protoc to generate the _

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

2016-06-30 Thread Sankar P
Yes, I did come across your service when I was searching. I have some PII information and so did not try the service. Having an on-premise solution is encouraging. I will play with it. Thanks. 2016-06-30 14:35 GMT+05:30 Peter Waller : > Hi Sankar, > > It may not be exactly what you'

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-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
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] protobuf go and pointers

2016-08-03 Thread Sankar P
Thanks for the explanation. It does look much better in proto3. I will see if it will be possible to switch to proto3. 2016-08-03 21:37 GMT+05:30 Ian Lance Taylor : > On Wed, Aug 3, 2016 at 8:58 AM, Sankar wrote: >> >> I have a .proto2 file, like: >> >> message s

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] Deploying go https servers

2017-03-09 Thread Sankar P
Wow. This is a fantastic post. Thanks for sharing. I was expecting something like this only. 2017-03-10 10:13 GMT+05:30 Dragos Harabor : > Does this help? > https://blog.gopheracademy.com/advent-2016/exposing-go-on-the-internet/ > > On Wednesday, March 8, 2017 at 7:49:37 PM UTC-8,

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

2017-03-10 Thread Sankar P
t; > For us, the big advantage is that we could focus on our Go API service > being only that, and not a web page server as well. > > -- > Kevin Powick > > > On Wednesday, 8 March 2017 14:02:50 UTC-5, Sankar wrote: >> >> Hi >> >> I have written a g

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

2017-06-02 Thread Sankar P
: > > Hello, > > Try something like this: > https://play.golang.org/p/xSEX1CAcQE > > > Le vendredi 2 juin 2017 16:26:24 UTC+2, Sankar a écrit : >> >> I have a go string >> >> dbConnStr1 := "user=someone password=something host=superduperhost >&g

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] 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] Re: RFC Package structuring

2020-02-29 Thread Sankar P
ஞாயி., 1 மார்., 2020, முற்பகல் 4:17 அன்று, hartzell எழுதியது: > On Saturday, February 29, 2020 at 10:03:34 AM UTC-8, Sankar wrote: >> >> I am starting a new project (say `hello`) and I am totally confused about >> what package structure to use. [...] >> > >

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] 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
> 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] 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] Run a goroutine until a channel receives a message

2021-01-13 Thread Sankar P
as above. > Yes, I too use the gorilla websocket library only. I have not touched the "context" related code as it was not part of the initial release and I never got around to understanding it. Thanks for the pointer. I will see if that would help me. Sankar -- You received this m

[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] Re: gRPC golang server and client testing

2021-04-10 Thread Sankar P
Hey, Sorry. Nope. We gave up on grpc. வியா., 8 ஏப்., 2021, முற்பகல் 4:18 அன்று, Yijun Liu எழுதியது: > Hi, did you know how to do the unit testing of grpc now? > > On Saturday, April 23, 2016 at 1:31:19 PM UTC-6 Sankar wrote: > >> Hi >> >> I have a .proto file which

[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