Russ Cox
9b1507b050
gc: implement panic and recover
...
R=ken2, r, ken3
CC=golang-dev
https://golang.org/cl/831042
2010-03-31 11:46:01 -07:00
Andrew Gerrand
c72f491ac2
godashboard: new stylesheet, build status pagination
...
R=rsc, gri, r
CC=golang-dev
https://golang.org/cl/822044
2010-03-31 17:01:16 +11:00
Andrew Gerrand
17a3f939f2
release.2010-03-30 part two
...
R=rsc
CC=golang-dev
https://golang.org/cl/859042
2010-03-31 12:38:54 +11:00
Rob Pike
884f3256f0
Unicode: fix stupid typo in comment.
...
R=rsc
CC=golang-dev
https://golang.org/cl/864041
2010-03-30 18:33:06 -07:00
Rob Pike
4e2b7f8f41
Unicode: provide an ability to supplement the case-mapping tables
...
in character and string case mapping routines.
Add a custom mapper for Turkish and Azeri.
A more general solution for deriving the case information from Unicode's
SpecialCasing.txt will require more work.
Fixes #703 .
R=rsc, rsc1
CC=golang-dev, mdakin
https://golang.org/cl/824043
2010-03-30 17:51:03 -07:00
Andrew Gerrand
c2f3737cb0
release 2010-03-30
...
R=rsc, gri
CC=golang-dev
https://golang.org/cl/821045
2010-03-31 11:40:57 +11:00
Robert Griesemer
e8e4987ba3
godoc: support for title and subtitle headers when serving .html docs
...
and use it to show version (date) of go spec
Fixes #68 .
R=rsc
CC=golang-dev, r
https://golang.org/cl/848042
2010-03-30 17:37:42 -07:00
Russ Cox
7ecefdc03f
runtime: fix arm build, slightly.
...
R=r
CC=golang-dev
https://golang.org/cl/842042
2010-03-30 17:00:27 -07:00
Robert Griesemer
f1c39c13a6
go/printer: follow-up on CL 802043
...
- more test cases
- comment fixes
- minor unrelated changes as part of investigation of issue 702
R=rsc
CC=golang-dev
https://golang.org/cl/860041
2010-03-30 16:49:51 -07:00
Russ Cox
78547ca132
time: do not segment time strings by character class.
...
instead use pure substring matching to find template values.
this makes stdZulu unnecessary and allows formats
like "20060102 030405" (used in some internet protocols).
this makes Parse not handle years < 0000 or > 9999 anymore.
that seems like an okay price to pay, trading hypothetical
functionality for real functionality.
also changed the comments on the Time struct to use the
same reference date as the format and parse routines.
R=r
CC=golang-dev
https://golang.org/cl/833045
2010-03-30 14:54:32 -07:00
Russ Cox
8fbe8bee6c
syscall: add IPV6 constants
...
R=r
CC=golang-dev
https://golang.org/cl/848041
2010-03-30 14:32:59 -07:00
Russ Cox
1231382b9e
single argument panic on non-darwin and in comments
...
R=r
CC=golang-dev
https://golang.org/cl/800042
2010-03-30 13:15:16 -07:00
Risto Jaakko Saarelma
ac58f646ac
Gofmt preserves newlines in multiline selector expressions.
...
This is for making the fluent interface idiom usable with gofmt.
R=gri
CC=golang-dev
https://golang.org/cl/802043
2010-03-30 11:46:21 -07:00
Robert Griesemer
76fc2f62d3
contributors, authors: add Risto Saarelma
...
R=rsc
CC=golang-dev
https://golang.org/cl/836043
2010-03-30 11:46:06 -07:00
Rob Pike
4710642d41
Effective Go: update maps description regarding lookup of nonexistent entry.
...
R=rsc, gri, iant
CC=golang-dev
https://golang.org/cl/821044
2010-03-30 11:21:50 -07:00
Robert Griesemer
6a71a4639e
godoc: don't print package clause in -src command-line mode with filtering
...
R=rsc
CC=golang-dev
https://golang.org/cl/844041
2010-03-30 11:19:58 -07:00
Russ Cox
01eaf780a8
gc: add panic and recover (still unimplemented in runtime)
...
main semantic change is to enforce single argument to panic.
runtime: change to 1-argument panic.
use String method on argument if it has one.
R=ken2, r
CC=golang-dev
https://golang.org/cl/812043
2010-03-30 10:53:16 -07:00
Russ Cox
c7122a3c58
simplify various code using new map index rule
...
R=r
CC=golang-dev
https://golang.org/cl/833044
2010-03-30 10:51:11 -07:00
Russ Cox
6962e2b754
make: use actual dependency for install
...
otherwise "make install" runs cp unconditionally
R=r
CC=golang-dev
https://golang.org/cl/802044
2010-03-30 10:44:51 -07:00
Russ Cox
5b257732ac
godefs: fix handling of negative constants
...
R=r
CC=golang-dev
https://golang.org/cl/849041
2010-03-30 10:42:13 -07:00
Russ Cox
00f9f0c056
single argument panic
...
note that sortmain.go has been run through hg gofmt;
only the formatting of the day initializers changed.
i'm happy to revert that formatting if you'd prefer.
stop on error in doc/progs/run
R=r
CC=golang-dev
https://golang.org/cl/850041
2010-03-30 10:34:57 -07:00
Russ Cox
5d0ec6c076
gc: flush warnings, if any
...
R=ken2
CC=golang-dev
https://golang.org/cl/811042
2010-03-29 23:34:59 -07:00
Christopher Wedgwood
d166d1629a
runtime: Remove unused runtime.write from linux/amd64
...
Also minor reformatting.
R=rsc
CC=golang-dev
https://golang.org/cl/845041
2010-03-29 22:51:39 -07:00
Russ Cox
83727ccf7c
runtime: run deferred calls at Goexit
...
baby step toward panic+recover.
Fixes #349 .
R=r
CC=golang-dev
https://golang.org/cl/825043
2010-03-29 21:48:22 -07:00
Robert Griesemer
bc32dd9ec4
go/printer: fix a comment
...
R=rsc
CC=golang-dev
https://golang.org/cl/826042
2010-03-29 18:41:55 -07:00
Robert Griesemer
671919d19a
godoc: support for filtering of command-line output in -src mode
...
+ various minor cleanups
Usage: godoc -src math Sin
R=rsc
CC=golang-dev
https://golang.org/cl/791041
2010-03-29 18:06:53 -07:00
Rob Pike
570af81e19
Flags: add user-defined flag types. The change is really no code; it's just publishing
...
the set() method and add() functions. But we rename add() to Var() for consistency.
Also rename FlagValue to Value for simplicity.
Also, delete the check for multiple settings for a flag. This makes it possible to
define a flag that collects values, such as into a slice of strings.
type flagVar []string
func (f *flagVar) String() string {
return fmt.Sprint(v)
}
func (f *flagVar) Set(value string) bool {
if v == nil {
v = make(flagVar, 1)
} else {
nv := make(flagVar, len(v)+1)
copy(nv, v)
v = nv
}
v[len(v)-1] = value
return true
}
var v flagVar
func main() {
flag.Var(&v, "testV", "multiple values build []string")
flag.Parse()
fmt.Printf("v = %v\n", v)
}
R=rsc
CC=golang-dev
https://golang.org/cl/842041
2010-03-29 17:37:22 -07:00
Russ Cox
d99a3da7b2
runtime: a couple more memory stats.
...
now runtime.MemStats.Sys really is the sum of all the other Sys fields.
R=r
CC=golang-dev
https://golang.org/cl/843041
2010-03-29 17:30:07 -07:00
Russ Cox
3908c16ffe
gc: bug265
...
Fixes #700 .
R=ken2
CC=golang-dev
https://golang.org/cl/839041
2010-03-29 15:27:59 -07:00
Robert Griesemer
b880543ffa
go/ast: generalized ast filtering
...
R=rsc
CC=golang-dev
https://golang.org/cl/788041
2010-03-29 15:26:07 -07:00
Rob Pike
299cd38f0a
strings.FIelds: slight simplification.
...
R=rsc
CC=golang-dev
https://golang.org/cl/833042
2010-03-29 13:39:16 -07:00
Russ Cox
bd1690ce5e
fix build
...
R=gri
CC=golang-dev
https://golang.org/cl/837041
2010-03-29 13:30:32 -07:00
Russ Cox
a709876767
runtime: more malloc statistics
...
expvar: default publishings for cmdline, memstats
godoc: import expvar
R=r
CC=golang-dev
https://golang.org/cl/815041
2010-03-29 13:06:26 -07:00
Robert Griesemer
71f5fa3111
bug265: test case for issue 700
...
( http://code.google.com/p/go/issues/detail?id=700 )
R=r
CC=golang-dev
https://golang.org/cl/827042
2010-03-29 10:34:16 -07:00
Roger Peppe
a48115bf2e
strconv.Unquote could wrongly return a nil error on error.
...
R=rsc, gri
CC=golang-dev
https://golang.org/cl/773041
2010-03-29 10:09:29 -07:00
Andrew Gerrand
9ba5ec53ad
comment typos
...
Fixes #698 .
Fixes #699 .
R=rsc
CC=golang-dev
https://golang.org/cl/824041
2010-03-29 16:31:41 +11:00
Andrew Gerrand
a618df0f5b
comment typo in crypto/rsa/rsa.go
...
R=rsc
CC=golang-dev
https://golang.org/cl/823041
2010-03-29 13:13:12 +11:00
Andrew Gerrand
10b77f7a2b
spec: typo in switch sample code, missing semicolon
...
Fixes #697
R=r
CC=golang-dev
https://golang.org/cl/804042
2010-03-29 13:12:08 +11:00
Andrew Gerrand
dc6f8321b1
http: add HandleFunc as shortcut to Handle(path, HandlerFunc(func))
...
R=rsc
CC=golang-dev
https://golang.org/cl/763042
2010-03-29 10:02:37 +11:00
Raif S. Naffah
66dd26e967
xml: use io.ReadByter in place of local readByter
...
R=cemeyer, rsc
CC=golang-dev
https://golang.org/cl/809041
2010-03-27 23:12:30 -07:00
Dean Prichard
55b145e32a
arm: fix build
...
R=rsc
CC=golang-dev
https://golang.org/cl/800041
2010-03-26 23:27:24 -07:00
Russ Cox
97d0e8fe6c
gc: allow taking address of out parameters
...
Fixes #186 .
R=ken2
CC=golang-dev
https://golang.org/cl/793041
2010-03-26 18:01:02 -07:00
Robert Griesemer
5a716206a4
fix build
...
R=r
CC=golang-dev
https://golang.org/cl/790041
2010-03-26 16:33:59 -07:00
Rob Pike
7ffe938f08
regexp: don't return non-nil *Regexp if there is an error.
...
R=gri
CC=golang-dev
https://golang.org/cl/787041
2010-03-26 16:18:20 -07:00
Russ Cox
baf538406b
pprof: dump extra heap information at end of heap profile
...
R=r
CC=golang-dev
https://golang.org/cl/786041
2010-03-26 15:32:53 -07:00
Russ Cox
f375791a91
fix build
...
TBR=r
CC=golang-dev
https://golang.org/cl/785041
2010-03-26 15:01:29 -07:00
Russ Cox
bc83042b07
godoc: export pprof debug information
...
R=gri
CC=golang-dev
https://golang.org/cl/784041
2010-03-26 14:48:04 -07:00
Russ Cox
c72fb37425
prof: install gopprof too
...
This is a modified version of the open source pprof
from code.google.com/p/google-perftools.
That version is likely to catch up to this one,
but it's still useful to ship our own copy since
we only need the one script from that project,
not all the C++ libraries.
R=r
CC=golang-dev
https://golang.org/cl/783041
2010-03-26 14:20:50 -07:00
Russ Cox
4e28cfe970
runtime: run all finalizers in a single goroutine.
...
eliminate second pass of mark+sweep
by scanning finalizer table specially.
R=r
CC=golang-dev
https://golang.org/cl/782041
2010-03-26 14:15:30 -07:00
Charles L. Dorian
1ec91c8d1d
math: add J1, Y1, Jn and Yn (Bessel functions)
...
Also amend j0.go (variable name conflict, small corrections).
R=rsc
CC=golang-dev
https://golang.org/cl/769041
2010-03-26 14:09:39 -07:00