Reputation: 455
As I know, go-lang is written by C at the beginning, and now it is written by itself. I want to figure out some fundamental implementations of go-lang, such as multi-return-value-of-function, which probably use structure I guess.
But now the go-lang version of go-lang source code has conceal these details, so where can I get the C version of go-lang source code (history version)? I've checked golang.org, nothing found.
Thanks.
Upvotes: 6
Views: 2072
Reputation: 166626
The compiler and runtime are now written entirely in Go (with a little assembler). C is no longer involved in the implementation, and so the C compiler that was once necessary for building the distribution is gone.
Therefore, check out the source code for previous release: release-branch.go1.4
.
For example,
git clone https://go.googlesource.com/go --branch release-branch.go1.4 --single-branch go1.4
Upvotes: 9
Reputation: 54325
I use Go 1.4.2 to bootstrap newer Go versions. I did a Go 1.6 build just this week.
It looks like there is a Go 1.4.3 available here: https://storage.googleapis.com/golang/go1.4.3.src.tar.gz
Upvotes: 0
Reputation: 2399
The r56 release was the first stable release and corresponds to weekly.2011-03-07.1.
The code is on github. It includes C
, bash
, go
.
Upvotes: 0