Re: [go-nuts] where is an online version of older versions like 1.8 1.6 golang pkg doc ?

2018-01-20 Thread paul . totterman
> > Having an option to link to old docs on golang.org (say > golang.org/pkg/something?tag=1.6.0) will result in people linking to > that option, crawlers storing that option, search engines pointing to > that option, and articles, help information and whatever else online > pinning themselve

Re: [go-nuts] Re: [ANN] reverse proxy with ssl in less than 100 lines of code

2018-01-02 Thread paul . totterman
> > You may want to investigate HPKP as well. > HPKP is on its way out: https://en.wikipedia.org/wiki/HTTP_Public_Key_Pinning#Browser_support Cheers, Paul -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] Re: net/http GET request with params

2017-12-12 Thread paul . totterman
> > I tried Set and Add. Request.Url.Query() is empty > https://godoc.org/net/url#URL.Query: Query parses RawQuery and returns the corresponding values. > You are changing a copy. q := req.URL.Query() q.Set()... req.URL.RawQuery = q.Encode() Cheers, Paul -- You received this message becau

[go-nuts] Re: Binary Download

2017-10-26 Thread paul . totterman
> > Tried to update to 1.9.2 and 1.8.5 with godeb. Oops "no downloads found" > Downloads only through a redirector. > https://redirector.gvt1.com/edgedl/go/go1.9.2.linux-386.tar.gz whois > GVT1.COM returns Registrar URL: http://www.markmonitor.com. Can sombody > point me to the discussion ab

[go-nuts] Re: Running a Go server in a chroot

2017-10-23 Thread paul . totterman
> > I'm running a statically linked (CGO_ENABLED=0) Go network server in > a chroot under Linux. The chroot is completely empty (except for the > server's data files), yet, to my surprise, the only issue I'm seeing is > that the timezone is wrong. > 1. Which file(s) do I copy into the chroo

Re: [go-nuts] git submodule vs normal go vendoring

2017-10-03 Thread paul . totterman
> > If the upstream goes away, you can just re-publish the repo (which you'll > have cloned locally) and adjust the remote URL in .gitmodules. New people > cloning will get the clone from the new source. > Not to counter anything you've said, but dep also allows adjusting the URL. Gopkg.toml:

[go-nuts] Re: git submodule vs normal go vendoring

2017-10-01 Thread paul . totterman
> > can anyone tell me the pros/cons of using git submodule update instead of > godep govendor etc... ? We used to use git submodules, but have now switched to https://github.com/golang/dep . Much recommended. Cheers, Paul -- You received this message because you are subscribed to the Goog

[go-nuts] Re: Tell "dep" to ignore a dependency?

2017-08-06 Thread paul . totterman
> > Thanks. But if I'll use constraint I'll need to rewrite all the import > paths in my code (and maybe in the vendor directory as well) > Maybe I've misunderstood something, but I was expecting you wouldn't have to: [[constraint]] name = "github.com/original/library" source = "github.com/you

[go-nuts] Re: Tell "dep" to ignore a dependency?

2017-08-06 Thread paul . totterman
Hi, I plan to use "dep" and also to place "vendor" in the git repository. > However I have one dependency in vendor which is locally patched. The > problem for me is that "dep ensure" overwrites my patch every time. Is > there a way to tell "dep" to ignore this specific package? (There are > o