Re: [go-nuts] Getting 410 error from https://sum.golang.org/lookup/github.com for a private github repo

2020-05-18 Thread Dimas Prawira
I think this has issue reported https://github.com/golang/go/issues/35164 I have face same issue and what I do is to set sumdb off $export GOSUMDB=off and then re-gomod. Hope that help Regards Dimas On Tue, May 19, 2020 at 3:03 AM Dean Schulze wrote: > Go get doesn't work with private serv

Re: [go-nuts] How to work with multiple environment like dev, test, staging, prod in golang ?

2020-05-18 Thread Dimas Prawira
I am also Java Developer using SpringBoot as my framework, I use three kinds of application configuration files (dev, staging, production). But in Go, I / we use Consul for storing configuration so the configuration file will be only one. For configuration format I use Yaml format using viper ( ht

[go-nuts] Re: Getting 410 error from https://sum.golang.org/lookup/github.com for a private github repo

2020-05-18 Thread Dean Schulze
Just verified that this is not due to the repo being private. It happens if the repo is public too. On Monday, May 18, 2020 at 2:02:38 PM UTC-6, Dean Schulze wrote: > > Go get doesn't work with private servers that don't have a web serve set > up on them. So I've switched to a private repo on

[go-nuts] Getting 410 error from https://sum.golang.org/lookup/github.com for a private github repo

2020-05-18 Thread Dean Schulze
Go get doesn't work with private servers that don't have a web serve set up on them. So I've switched to a private repo on github.com. I'm getting a 410 error now from some proxy. Here's the command: go get github.com/dwschulze/shippy-service-consignment/proto/consignment I get this error:

Re: [go-nuts] Any solution to hide my source code written in Go and make it a library to develop in Go as well

2020-05-18 Thread Robert Engels
It’s pretty much the same as any compiled language. See https://www.pnfsoftware.com/blog/analyzing-golang-executables/ > On May 18, 2020, at 1:13 AM, Billy Cui wrote: > >  > Looks this works, anyone know the plugin mode is easy crack out the source > code or not? > > >> On Monday, May 18, 2

[go-nuts] Re: How to work with multiple environment like dev, test, staging, prod in golang ?

2020-05-18 Thread Brian Candler
Many projects define their options in a struct { ... }, and then parse a YAML config file into that struct. See for example: https://github.com/rorycl/sshagentca/blob/master/util/settings.go#L26 https://github.com/QubitProducts/exporter_exporter/blob/master/config.go#L30 Aside: I believe there's