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 themselves to that option. 
>

I agree that this can be frustrating, as with e.g. postgresql 
documentation. But there exists a solution, at least to some of these 
problems: link rel="canonical" : 
https://support.google.com/webmasters/answer/139066?hl=en

Cheers,
Paul

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 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/optout.


[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 about this change?
>

whois gvt1.com returns quite a bit for me, including:

 Registrant Name: DNS Admin
Registrant Organization: Google Inc.
Registrant Street: 1600 Amphitheatre Parkway
Registrant City: Mountain View
Registrant State/Province: CA
Registrant Postal Code: 94043
Registrant Country: US
Registrant Phone: +1.6506234000
Registrant Phone Ext: 
Registrant Fax: +1.6506188571
Registrant Fax Ext: 
Registrant Email: dns-ad...@google.com

Cheers,
Paul

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 chroot in order to have the correct 
>  timezone ?
>   2. Any other files or device nodes I should copy into the chroot?
>

strace could be handy to show you which files it tries to open

Cheers,
Paul 

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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:

[[constraint]]
  name = "github.com/some/project"
  source = "github.com/forkof/project" 

Cheers,
Paul

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 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/optout.


[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/your/fork"

Cheers,
Paul 

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 
> overrides, from what what I've seen you can just set a specific version 
> there).
>

You should be able to use a [[constraint]] -section in Gopkg.toml to point 
the source of a package to your own forked repository.

Cheers,
Paul 

-- 
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.