4 ms·
What bothers me: Since a while the documentation links to cs.opensource.google with the typical google flavor. Some years ago, you could simply click on some fu
by arendtio 3y ago
What bothers me: Since a while the documentation links to cs.opensource.google with the typical google flavor. Some years ago, you could simply click on some function in the documentation and view the source code. When I do this now, I find myself on a permission denied page. Just a random example:
Permission denied.
Please contact the administrator.
https://cs.opensource.google/go/go/+/go1.21.1:src/strings/clone.go;l=21 https://cs.opensource.google/go/go/+/go1.21.1:src/strings/cl...
I don't know what causes this, but is seems to be related to my Firefox, because in Chromium I can see that page. I just wonder, what on earth makes it so hard to serve a documentation in a way that is available to all browsers.
- elygre 3y agoFor a counterpoint: I can see that page in Firefox. Probably related to some setting on your computer.
- arendtio 3y agoAre logged in to some google account?
- dharmit 3y agoI have faced the same problem numerous times. Sometimes the cs.opensource.google links work, sometimes they don't. I haven't yet bothered to try and understand why that's the case. Why can't they use the github.com/golang/go link instead? (no pun, genuinely wondering)
- dolmen 3y ago1. github.com/golang.go is just a mirror. The main Git repo is available via https://go.googlesource.com/go https://go.googlesource.com/go 2. GitHub.com is Microsoft infrastructure. cs.opensource.google is Google infrastructure. I still wonder why there is both cs.opensource.google and go.googlesource.com.
- demi56 3y agoBecause GitHub is a mirror not the actual repo, I think I was around 2015 when Go was gaining massive attraction they had to use GitHub for issues also, still you can’t change the fact that more than 70% of commits is from google
- saclark11 3y agoDo you have any privacy/ad-blocking extensions installed? I used to have the same issue and realized it was due to the DuckDuckGo Privacy Essentials extension. When I turn that extension's protections off for cs.opensource.google then it works.
- rakoo 3y agoIt's source code. If we can't read it without privacy extensions, it doesn't work.
- dolmen 3y agoEven more: as reading on a machine that has the Go toolchain installed, this is source code that is already available on the local filesystem.
- d-z-m 3y ago> If we can't read it without privacy extensions, it doesn't work. What doesn't work?
- rakoo 3y agoReading source code.
- duskwuff 3y agoThe same source code is also part of the Go distribution ($GOROOT/src). The Google source browser isn't the only place it's available.
- arendtio 3y agoYes, you can find the documentation in other places and that is what I usually do, but it sucks because this is the official documentation of the programming language. Having those links to quickly take a look at the implementation is what made this documentation so good.
- 3y ago