]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agoxml: use io.ReadByter in place of local readByter
Raif S. Naffah [Sun, 28 Mar 2010 06:12:30 +0000 (23:12 -0700)]
xml: use io.ReadByter in place of local readByter

R=cemeyer, rsc
CC=golang-dev
https://golang.org/cl/809041

15 years agoarm: fix build
Dean Prichard [Sat, 27 Mar 2010 06:27:24 +0000 (23:27 -0700)]
arm: fix build

R=rsc
CC=golang-dev
https://golang.org/cl/800041

15 years agogc: allow taking address of out parameters
Russ Cox [Sat, 27 Mar 2010 01:01:02 +0000 (18:01 -0700)]
gc: allow taking address of out parameters

Fixes #186.

R=ken2
CC=golang-dev
https://golang.org/cl/793041

15 years agofix build
Robert Griesemer [Fri, 26 Mar 2010 23:33:59 +0000 (16:33 -0700)]
fix build

R=r
CC=golang-dev
https://golang.org/cl/790041

15 years agoregexp: don't return non-nil *Regexp if there is an error.
Rob Pike [Fri, 26 Mar 2010 23:18:20 +0000 (16:18 -0700)]
regexp: don't return non-nil *Regexp if there is an error.

R=gri
CC=golang-dev
https://golang.org/cl/787041

15 years agopprof: dump extra heap information at end of heap profile
Russ Cox [Fri, 26 Mar 2010 22:32:53 +0000 (15:32 -0700)]
pprof: dump extra heap information at end of heap profile

R=r
CC=golang-dev
https://golang.org/cl/786041

15 years agofix build
Russ Cox [Fri, 26 Mar 2010 22:01:29 +0000 (15:01 -0700)]
fix build

TBR=r
CC=golang-dev
https://golang.org/cl/785041

15 years agogodoc: export pprof debug information
Russ Cox [Fri, 26 Mar 2010 21:48:04 +0000 (14:48 -0700)]
godoc: export pprof debug information

R=gri
CC=golang-dev
https://golang.org/cl/784041

15 years agoprof: install gopprof too
Russ Cox [Fri, 26 Mar 2010 21:20:50 +0000 (14:20 -0700)]
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

15 years agoruntime: run all finalizers in a single goroutine.
Russ Cox [Fri, 26 Mar 2010 21:15:30 +0000 (14:15 -0700)]
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

15 years agomath: add J1, Y1, Jn and Yn (Bessel functions)
Charles L. Dorian [Fri, 26 Mar 2010 21:09:39 +0000 (14:09 -0700)]
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

15 years agosyscall: Create syscall_bsd.go for code used by Darwin and other *BSDs
Giles Lean [Fri, 26 Mar 2010 20:23:54 +0000 (13:23 -0700)]
syscall: Create syscall_bsd.go for code used by Darwin and other *BSDs

In this change I'd like to combine the common code that is
present in syscall_darwin.go and syscall_freebsd.go.  I
have three reasons for wanting to do this now:

1. reducing code duplication is nearly always good :-)
2. the duplication will get worse if I duplicate this code
   a third time for the NetBSD port I'm working on, which
   I need to do almost immediately
3. by making this change all in one lump and ignoring any
   commonality with the syscall_linux*.go files the diff
   is long but, I think, readable

In future it may be possible to cherry pick functions that
also apply to Linux and put them in (say) syscall_unix.go,
and of course some functions may diverge in future and have
to move out to OS or architecture specific files, but today
I want just the low hanging fruit.

Tested and passed on:

  Darwin (Snow Leopard, 10.6): amd64 and 386
  FreeBSD (8.0-RELEASE):       386 only(*)

(*) All my virtualisation software has stopped playing nice
with FreeBSD for the moment, so I don't have facilities to
test the amd64 port.  As the OS X port is OK and the diff
looks all right to my eyes I shall keep my fingers crossed.
If someone with a FreeBSD/amd64 system cares to test and
report I would be appreciative.

2010-03-27 update: I have replaced my virtualisation software, and have working FreeBSD/i386 and FreeBSD/amd64 virtual machines again.

As I hoped (and expected -- programmers are optimists :-) the code built and passed all but the two currently known to fail tests on FreeBSD/amd64. I rechecked FreeBSD/i386 too: same results.

R=rsc
CC=golang-dev
https://golang.org/cl/751041

15 years agobytes, strings: IndexOfAny
Robert Griesemer [Fri, 26 Mar 2010 20:05:04 +0000 (13:05 -0700)]
bytes, strings: IndexOfAny
+ first use in go/doc

R=r
CC=golang-dev
https://golang.org/cl/781041

15 years agofix spelling of align
Rob Pike [Fri, 26 Mar 2010 16:56:57 +0000 (09:56 -0700)]
fix spelling of align

R=rsc
CC=golang-dev
https://golang.org/cl/778041

15 years agoxgb: fix request length and request size.
Firmansyah Adiputra [Fri, 26 Mar 2010 16:21:09 +0000 (09:21 -0700)]
xgb: fix request length and request size.

R=nigeltao_golang, rsc
CC=golang-dev
https://golang.org/cl/759041

15 years agospec changes for panic and recover.
Rob Pike [Fri, 26 Mar 2010 00:59:59 +0000 (17:59 -0700)]
spec changes for panic and recover.

R=rsc, gri
CC=golang-dev
https://golang.org/cl/763041

15 years agogodoc: don't convert multi-line functions into one-liners by default
Robert Griesemer [Thu, 25 Mar 2010 23:59:02 +0000 (16:59 -0700)]
godoc: don't convert multi-line functions into one-liners by default

- new heuristic: if both the opening { and closing } braces are on the
  same line, and the function body doesn't contain comments or is other-
  wise too long (e.g. signature too long), it is formatted as a one-line
  function

- related cleanups along the way

- gofmt -w src misc led to no additional changes as expected

R=rsc, rsc1
CC=golang-dev, ken2, r
https://golang.org/cl/758041

15 years agobug264 didn't report BUG correctly, caused "fail" from test/run
Rob Pike [Thu, 25 Mar 2010 21:27:24 +0000 (14:27 -0700)]
bug264 didn't report BUG correctly, caused "fail" from test/run

R=rsc, gri
CC=golang-dev
https://golang.org/cl/762041

15 years agomake alignment rules match 8g, just like 6c matches 6g.
Russ Cox [Thu, 25 Mar 2010 21:05:54 +0000 (14:05 -0700)]
make alignment rules match 8g, just like 6c matches 6g.

R=ken2
CC=golang-dev
https://golang.org/cl/760042

15 years agogc: more syntax errors
Russ Cox [Thu, 25 Mar 2010 19:47:43 +0000 (12:47 -0700)]
gc: more syntax errors

R=r
CC=golang-dev
https://golang.org/cl/731041

15 years agoAdd strconv.Atob, Btoa.
Rob Pike [Thu, 25 Mar 2010 18:50:07 +0000 (11:50 -0700)]
Add strconv.Atob, Btoa.
Fixes #639

R=rsc
CC=golang-dev
https://golang.org/cl/755041

15 years agoSupport #pragma dynexport on OS X.
Ian Lance Taylor [Thu, 25 Mar 2010 18:45:18 +0000 (11:45 -0700)]
Support #pragma dynexport on OS X.

R=rsc
CC=golang-dev
https://golang.org/cl/733041

15 years agobug264: test case for issue 692
Robert Griesemer [Thu, 25 Mar 2010 17:01:51 +0000 (10:01 -0700)]
bug264: test case for issue 692

R=r
CC=golang-dev
https://golang.org/cl/715042

15 years agoarm: disable some problematic tests
Dean Prichard [Thu, 25 Mar 2010 07:23:07 +0000 (00:23 -0700)]
arm: disable some problematic tests

test/64bit.go:  segfaults on sheevaplug(armv5)

The following have long runtimes when GC is on.
Sample run time in seconds for android emulator
and sheevaplug
test/stack.go:          4934s   1780s
test/ken/chan.go:        860s    296s
test/gc1.go:             218s     69s

R=rsc, kaib
CC=golang-dev
https://golang.org/cl/749041

15 years agosyscall: Implement SetsockoptString
Christopher Wedgwood [Thu, 25 Mar 2010 05:36:38 +0000 (22:36 -0700)]
syscall: Implement SetsockoptString

R=rsc, r
CC=golang-dev
https://golang.org/cl/739042

15 years agoSydney University tech talk.
Nigel Tao [Thu, 25 Mar 2010 05:15:52 +0000 (16:15 +1100)]
Sydney University tech talk.

R=adg
CC=golang-dev
https://golang.org/cl/744042

15 years agogc: tests omitted from the last bug fix
Russ Cox [Thu, 25 Mar 2010 05:12:59 +0000 (22:12 -0700)]
gc: tests omitted from the last bug fix

R=ken2
CC=golang-dev
https://golang.org/cl/748041

15 years agosyscall: bring generated files zsyscall_darwin_*.go
Giles Lean [Thu, 25 Mar 2010 04:59:21 +0000 (21:59 -0700)]
syscall: bring generated files zsyscall_darwin_*.go
up to date.

No functional change, but when these files are regenerated
they change, leading to noisy diffs when working in the
syscall package.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/705043

15 years agotest/mallocfin: relax test to 80% from 90%.
Russ Cox [Thu, 25 Mar 2010 02:52:07 +0000 (19:52 -0700)]
test/mallocfin: relax test to 80% from 90%.

R=r
CC=golang-dev
https://golang.org/cl/725042

15 years agoruntime: fix mingw build, implement missing destroylock()
Alex Brainman [Thu, 25 Mar 2010 01:03:10 +0000 (18:03 -0700)]
runtime: fix mingw build, implement missing destroylock()

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/747041

15 years agodepricate panicln
Ken Thompson [Wed, 24 Mar 2010 23:53:54 +0000 (16:53 -0700)]
depricate panicln

R=rsc
CC=golang-dev
https://golang.org/cl/743041

15 years agodelete all uses of panicln by rewriting them using panic or,
Rob Pike [Wed, 24 Mar 2010 23:46:53 +0000 (16:46 -0700)]
delete all uses of panicln by rewriting them using panic or,
in the tests, println+panic.
gofmt some tests too.

R=rsc
CC=golang-dev
https://golang.org/cl/741041

15 years agogodoc: show relative file names without leading '/' (per r's request)
Robert Griesemer [Wed, 24 Mar 2010 23:28:59 +0000 (16:28 -0700)]
godoc: show relative file names without leading '/' (per r's request)

- change the various url-xxx formatters to return a relative URL path
- make the leading '/' for URLs explicit in the template
- on the way change some |html formatters to |html-esc
  (html should only be used for formatting AST nodes)

R=rsc, r
CC=golang-dev
https://golang.org/cl/740041

15 years agoDelete panicln from the spec.
Rob Pike [Wed, 24 Mar 2010 22:17:00 +0000 (15:17 -0700)]
Delete panicln from the spec.

R=rsc, gri, iant, ken2
CC=golang-dev
https://golang.org/cl/738041

15 years agogodoc: use http GET for remote search instead of rpc
Robert Griesemer [Wed, 24 Mar 2010 21:51:55 +0000 (14:51 -0700)]
godoc: use http GET for remote search instead of rpc
(this will allow the use of golang.org for remote
searches)

R=rsc
CC=golang-dev
https://golang.org/cl/734041

15 years agoruntime: malloc sampling, pprof interface
Russ Cox [Wed, 24 Mar 2010 16:40:09 +0000 (09:40 -0700)]
runtime: malloc sampling, pprof interface

R=r
CC=golang-dev
https://golang.org/cl/719041

15 years agomath: add J0 and Y0 (Bessel functions)
Charles L. Dorian [Wed, 24 Mar 2010 16:25:49 +0000 (09:25 -0700)]
math: add J0 and Y0 (Bessel functions)

R=rsc
CC=golang-dev
https://golang.org/cl/661044

15 years agocc: fix typo
Russ Cox [Wed, 24 Mar 2010 15:59:09 +0000 (08:59 -0700)]
cc: fix typo

R=iant
CC=golang-dev
https://golang.org/cl/720041

15 years agoruntime: add memory profiling, disabled.
Russ Cox [Wed, 24 Mar 2010 03:48:23 +0000 (20:48 -0700)]
runtime: add memory profiling, disabled.
no way to get the data out yet.

add prototype for runtime.Callers,
missing from last CL.

R=r
CC=golang-dev
https://golang.org/cl/713041

15 years agoarm: fix build
Dean Prichard [Wed, 24 Mar 2010 01:13:20 +0000 (18:13 -0700)]
arm: fix build

R=kaib, rsc
CC=golang-dev
https://golang.org/cl/627045

15 years agocmd/goinstall: include command name in error reporting (usually missing software...
Andrey Mirtchovski [Wed, 24 Mar 2010 01:13:16 +0000 (18:13 -0700)]
cmd/goinstall: include command name in error reporting (usually missing software or incorrect $PATH)

R=rsc
CC=golang-dev
https://golang.org/cl/695041

15 years agogc: fix build in France
Russ Cox [Wed, 24 Mar 2010 01:11:21 +0000 (18:11 -0700)]
gc: fix build in France

Fixes #626.

R=ken2
CC=golang-dev
https://golang.org/cl/714041

15 years agowebsocket: implement new protocol
Fumitoshi Ukai [Wed, 24 Mar 2010 01:09:24 +0000 (18:09 -0700)]
websocket: implement new protocol
http://www.whatwg.org/specs/web-socket-protocol/
(draft of draft-hixie-thewebsocketprotocol-76)

draft-hixie-thewebsocketprotocol-76 will introduce new handshake
incompatible draft 75 or prior.
http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol

R=rsc
CC=golang-dev
https://golang.org/cl/583041

15 years agoTrivial: remove duplicate line #include <sys/types.h>
Giles Lean [Wed, 24 Mar 2010 00:52:16 +0000 (17:52 -0700)]
Trivial: remove duplicate line #include <sys/types.h>

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/645044

15 years agofix build - unused import
Russ Cox [Wed, 24 Mar 2010 00:34:13 +0000 (17:34 -0700)]
fix build - unused import

R=gri
CC=golang-dev
https://golang.org/cl/711041

15 years agogo spec: modification of defer statement
Robert Griesemer [Wed, 24 Mar 2010 00:30:14 +0000 (17:30 -0700)]
go spec: modification of defer statement

R=r, rsc, ken2, iant
CC=golang-dev
https://golang.org/cl/708041

15 years agoFAQ: Protocol buffers are now supported. Update the entry.
Rob Pike [Wed, 24 Mar 2010 00:03:28 +0000 (17:03 -0700)]
FAQ: Protocol buffers are now supported.  Update the entry.

R=rsc, adg
CC=golang-dev
https://golang.org/cl/702042

15 years agoruntime: add Callers
Russ Cox [Wed, 24 Mar 2010 00:01:17 +0000 (17:01 -0700)]
runtime: add Callers

cut copies of traceback from 6 to 1.

R=r
CC=golang-dev
https://golang.org/cl/703041

15 years agogo/printer: avoid reflect in print
Russ Cox [Tue, 23 Mar 2010 23:56:48 +0000 (16:56 -0700)]
go/printer: avoid reflect in print

R=gri
CC=golang-dev
https://golang.org/cl/704041

15 years agoGo spec: map indexing never raises a runtime exception.
Robert Griesemer [Tue, 23 Mar 2010 21:01:51 +0000 (14:01 -0700)]
Go spec: map indexing never raises a runtime exception.
Also: Actual map key must be assignment-compatible with
formal map key type.

Fixes #357.

R=r, iant, rsc, ken2
CC=golang-dev
https://golang.org/cl/673042

15 years agoxml: add line numbers to syntax errors.
Kyle Consalus [Tue, 23 Mar 2010 20:20:16 +0000 (13:20 -0700)]
xml: add line numbers to syntax errors.

R=rsc
CC=golang-dev
https://golang.org/cl/699041

15 years agomaps access to a missing key
Ken Thompson [Tue, 23 Mar 2010 20:00:02 +0000 (13:00 -0700)]
maps access to a missing key
will return the "zero" value

R=rsc
CC=golang-dev
https://golang.org/cl/700041

15 years agoxml: add CopyToken
Kyle Consalus [Tue, 23 Mar 2010 16:43:20 +0000 (09:43 -0700)]
xml: add CopyToken

R=rsc
CC=golang-dev
https://golang.org/cl/634042

15 years agoAdd support for #pragma dynexport.
Ian Lance Taylor [Tue, 23 Mar 2010 13:46:30 +0000 (06:46 -0700)]
Add support for #pragma dynexport.

R=rsc
CC=golang-dev
https://golang.org/cl/661043

15 years agorelease.2010-03-22 part two
Andrew Gerrand [Tue, 23 Mar 2010 03:18:57 +0000 (14:18 +1100)]
release.2010-03-22 part two

R=rsc
CC=golang-dev
https://golang.org/cl/691041

15 years agoRename dynld to dynimport throughout.
Ian Lance Taylor [Tue, 23 Mar 2010 02:58:55 +0000 (19:58 -0700)]
Rename dynld to dynimport throughout.

Cgo users will need to rerun cgo.

R=rsc
CC=golang-dev
https://golang.org/cl/692041

15 years agorelease.2010-03-22 weekly.2010-03-22
Andrew Gerrand [Tue, 23 Mar 2010 01:56:39 +0000 (12:56 +1100)]
release.2010-03-22

R=rsc
CC=golang-dev
https://golang.org/cl/643042

15 years agogc: various map-related bug fixes
Russ Cox [Tue, 23 Mar 2010 01:51:14 +0000 (18:51 -0700)]
gc: various map-related bug fixes

Fixes #687.

R=ken2
CC=golang-dev
https://golang.org/cl/680042

15 years agoast/printer: support for printing ast.Spec nodes
Andrew Gerrand [Mon, 22 Mar 2010 22:00:47 +0000 (09:00 +1100)]
ast/printer: support for printing ast.Spec nodes

R=gri
CC=golang-dev
https://golang.org/cl/682041

15 years agogoinstall: let git/hg/svn create the final directory element
Russ Cox [Sun, 21 Mar 2010 05:38:06 +0000 (22:38 -0700)]
goinstall: let git/hg/svn create the final directory element

R=r
CC=golang-dev
https://golang.org/cl/634044

15 years agoA+C: add Kyle Consalus (individual CLA)
Russ Cox [Sun, 21 Mar 2010 05:37:53 +0000 (22:37 -0700)]
A+C: add Kyle Consalus (individual CLA)

R=r
CC=golang-dev
https://golang.org/cl/662041

15 years agolibmach: more info when memory reads fail on Darwin
Russ Cox [Sun, 21 Mar 2010 05:37:23 +0000 (22:37 -0700)]
libmach: more info when memory reads fail on Darwin

R=r
CC=golang-dev
https://golang.org/cl/604043

15 years agoissue 682
Ken Thompson [Sun, 21 Mar 2010 01:50:01 +0000 (18:50 -0700)]
issue 682
complex DATA statement fo
initialization of complex variables.

R=rsc
CC=golang-dev
https://golang.org/cl/634045

15 years agogodoc: line numbers for all remote search results
Robert Griesemer [Sat, 20 Mar 2010 05:48:08 +0000 (22:48 -0700)]
godoc: line numbers for all remote search results

Instead of returning the index lookup result via
RPC which has to be corrected for the client,
simply render it on the server and return the
final output.

R=rsc, r
CC=golang-dev
https://golang.org/cl/669041

15 years agogodoc: revert change 5089, per gri's instructions
Russ Cox [Sat, 20 Mar 2010 00:46:18 +0000 (17:46 -0700)]
godoc: revert change 5089, per gri's instructions

R=gri
CC=golang-dev
https://golang.org/cl/630043

15 years agowebsite: add Go Blog widget to frontpage,
Andrew Gerrand [Sat, 20 Mar 2010 00:42:57 +0000 (11:42 +1100)]
website: add Go Blog widget to frontpage,
add Blog and Wiki links to sideba

R=r, rsc, gri
CC=golang-dev
https://golang.org/cl/611042

15 years agogodoc: proper file path conversion for remote search
Robert Griesemer [Sat, 20 Mar 2010 00:07:16 +0000 (17:07 -0700)]
godoc: proper file path conversion for remote search

R=rsc
CC=golang-dev
https://golang.org/cl/664041

15 years agoMake.cmd: make 'all' the default target (was 'clean': BUG)
Rob Pike [Fri, 19 Mar 2010 23:33:27 +0000 (16:33 -0700)]
Make.cmd: make 'all' the default target (was 'clean': BUG)

R=rsc
CC=golang-dev
https://golang.org/cl/661041

15 years agoos: drop File finalizer after normal Close
Russ Cox [Fri, 19 Mar 2010 23:28:32 +0000 (16:28 -0700)]
os: drop File finalizer after normal Close

R=r
CC=golang-dev
https://golang.org/cl/586043

15 years agohttp: add Error helper function
Andrew Gerrand [Fri, 19 Mar 2010 23:22:09 +0000 (10:22 +1100)]
http: add Error helper function

R=r, rsc
CC=golang-dev
https://golang.org/cl/626042

15 years agodoc/htmlgen.go: remove unnecessary semicolons
James Toy [Fri, 19 Mar 2010 23:17:18 +0000 (16:17 -0700)]
doc/htmlgen.go: remove unnecessary semicolons

R=rsc
CC=golang-dev
https://golang.org/cl/589043

15 years agoA+C: add James Toy (individual CLA)
Russ Cox [Fri, 19 Mar 2010 22:54:27 +0000 (15:54 -0700)]
A+C: add James Toy (individual CLA)

R=r
CC=golang-dev
https://golang.org/cl/660041

15 years agomath: add Gamma function
Charles L. Dorian [Fri, 19 Mar 2010 22:29:22 +0000 (15:29 -0700)]
math: add Gamma function

R=rsc
CC=golang-dev
https://golang.org/cl/649041

15 years agosyscall: mingw implemntation of Errstr()
Alex Brainman [Fri, 19 Mar 2010 22:21:37 +0000 (15:21 -0700)]
syscall: mingw implemntation of Errstr()

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/621041

15 years agogodoc: show (some) line numbers for remote search
Robert Griesemer [Fri, 19 Mar 2010 22:20:20 +0000 (15:20 -0700)]
godoc: show (some) line numbers for remote search
- show build version
- use build goroot when possible

R=rsc
CC=golang-dev
https://golang.org/cl/656043

15 years agosyscall: mksyscall_mingw.sh emitting shorter calls (to Syscall or Syscall6) when...
Alex Brainman [Fri, 19 Mar 2010 22:17:18 +0000 (15:17 -0700)]
syscall: mksyscall_mingw.sh emitting shorter calls (to Syscall or Syscall6) when there are fewer arguments

R=rsc
CC=golang-dev
https://golang.org/cl/622041

15 years agoFactor the Makefiles to make writing outside Makefiles easier.
Rob Pike [Fri, 19 Mar 2010 22:14:46 +0000 (15:14 -0700)]
Factor the Makefiles to make writing outside Makefiles easier.

R=rsc
CC=golang-dev
https://golang.org/cl/650042

15 years agoissue 608
Ken Thompson [Fri, 19 Mar 2010 21:20:15 +0000 (14:20 -0700)]
issue 608
error compiling if(long long) in 6c compiler

R=rsc
CC=golang-dev
https://golang.org/cl/657042

15 years agowebsocket: use URL.RawPath to construct WebSocket-Location: header
Fumitoshi Ukai [Fri, 19 Mar 2010 21:18:02 +0000 (14:18 -0700)]
websocket: use URL.RawPath to construct WebSocket-Location: header

R=rsc
CC=golang-dev
https://golang.org/cl/651041

15 years agodeps.bash: handle Makefiles with .go filenames that include $(GOOS) and $(GOARCH)
Alex Brainman [Fri, 19 Mar 2010 21:17:07 +0000 (14:17 -0700)]
deps.bash: handle Makefiles with .go filenames that include $(GOOS) and $(GOARCH)

R=rsc
CC=golang-dev
https://golang.org/cl/642042

15 years agogodoc: improved comment formatting: recognize URLs
Robert Griesemer [Fri, 19 Mar 2010 20:01:45 +0000 (13:01 -0700)]
godoc: improved comment formatting: recognize URLs
and highlight special words, if provided. Also:

- related cleanups in src/pkg/go/doc/comment.go
- fix typos in src/cmd/goinstall/doc.go

Fixes #672.

R=rsc
CC=adg, golang-dev
https://golang.org/cl/601042

15 years agogodoc: implemented command-line search
Robert Griesemer [Fri, 19 Mar 2010 19:46:43 +0000 (12:46 -0700)]
godoc: implemented command-line search

The command-line search is using a running webserver
as index server; i.e., the search result is reflecting
the index at the server. See the documentation for
details.

Usage: godoc -q query1 query2 ...

Known issue: Results don't show the all-important
line numbers yet due to the way the index is organized.
Next CL.

R=rsc, r
CC=golang-dev
https://golang.org/cl/648041

15 years agotemplate: fixed html formatter bug where it would turn a []byte
Andrew Gerrand [Thu, 18 Mar 2010 22:46:39 +0000 (09:46 +1100)]
template: fixed html formatter bug where it would turn a []byte
into a string of decimal numbers.

R=r, rsc
CC=golang-dev
https://golang.org/cl/624041

15 years agorpc documentation cleanup: remove ;'s from code in documentation
Robert Griesemer [Thu, 18 Mar 2010 21:10:25 +0000 (14:10 -0700)]
rpc documentation cleanup: remove ;'s from code in documentation

R=r
CC=golang-dev
https://golang.org/cl/624042

15 years agogo/doc cleanup: remove some unnecessary string conversions
Robert Griesemer [Thu, 18 Mar 2010 21:09:17 +0000 (14:09 -0700)]
go/doc cleanup: remove some unnecessary string conversions

R=rsc
CC=golang-dev
https://golang.org/cl/642041

15 years agoFix src/pkg/syscall/mkall.sh: don't assume that . is on PATH.
Alex Brainman [Thu, 18 Mar 2010 03:07:14 +0000 (20:07 -0700)]
Fix src/pkg/syscall/mkall.sh: don't assume that . is on PATH.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/614042

15 years agoFix build: don't assume that . is on PATH.
Ian Lance Taylor [Wed, 17 Mar 2010 17:08:27 +0000 (10:08 -0700)]
Fix build: don't assume that . is on PATH.

R=rsc
TBR=rsc
CC=golang-dev
https://golang.org/cl/610043

15 years agocrypto/rand: new package
Russ Cox [Wed, 17 Mar 2010 06:12:20 +0000 (23:12 -0700)]
crypto/rand: new package

Until proven insufficient, rely on the operating system
to give us good random bytes (/dev/urandom).

R=agl1
CC=golang-dev
https://golang.org/cl/569044

15 years agoruntime: add GOROOT and Version
Russ Cox [Wed, 17 Mar 2010 06:10:33 +0000 (23:10 -0700)]
runtime: add GOROOT and Version

R=r
CC=golang-dev
https://golang.org/cl/608041

15 years agosyscall: more changes to mingw version
Alex Brainman [Wed, 17 Mar 2010 06:10:07 +0000 (23:10 -0700)]
syscall: more changes to mingw version
- mkall now generates syscall stabs automatically
- we can call unicode versions of winapi now
- introduce GetErrstr function to fetch error text given errno
- general cleanup

R=rsc
CC=golang-dev
https://golang.org/cl/562041

15 years agojson: add MarshalIndent (accepts user-specified indent string)
Andrew Gerrand [Wed, 17 Mar 2010 04:41:16 +0000 (15:41 +1100)]
json: add MarshalIndent (accepts user-specified indent string)

Fixes #661

R=r, rsc, skorobo
CC=golang-dev
https://golang.org/cl/576042

15 years agosyscall: add const ARCH, analogous to OS
Russ Cox [Wed, 17 Mar 2010 01:45:48 +0000 (18:45 -0700)]
syscall: add const ARCH, analogous to OS

R=r
CC=giles, golang-dev
https://golang.org/cl/600041

15 years agodoc/install: tweak port text; drop redundant list of operating systems.
Russ Cox [Wed, 17 Mar 2010 01:45:16 +0000 (18:45 -0700)]
doc/install: tweak port text; drop redundant list of operating systems.

R=adg
CC=golang-dev, r
https://golang.org/cl/597041

15 years agoversion.bash: cope with ancient Mercurial
Russ Cox [Wed, 17 Mar 2010 01:45:06 +0000 (18:45 -0700)]
version.bash: cope with ancient Mercurial

R=adg
CC=dpx, golang-dev
https://golang.org/cl/593043

15 years agohttp: change RawPath to mean raw path, not raw everything-after-scheme.
Russ Cox [Wed, 17 Mar 2010 01:44:55 +0000 (18:44 -0700)]
http: change RawPath to mean raw path, not raw everything-after-scheme.

The new meaning is more useful for both websocket and http.

R=r, petar-m, ukai
CC=golang-dev, madari
https://golang.org/cl/582043

15 years agoutf16: new package
Russ Cox [Wed, 17 Mar 2010 01:44:37 +0000 (18:44 -0700)]
utf16: new package

needed for interacting with various legacy interfaces,
like Windows and the Mac OS clipboard.

R=r
CC=golang-dev
https://golang.org/cl/595041

15 years agogoinstall doc: fix link to godashboard/package
Andrew Gerrand [Wed, 17 Mar 2010 00:40:05 +0000 (11:40 +1100)]
goinstall doc: fix link to godashboard/package

R=rsc
CC=golang-dev
https://golang.org/cl/607041

15 years agogofmt: more consistent formatting of const/var decls
Robert Griesemer [Tue, 16 Mar 2010 23:45:54 +0000 (16:45 -0700)]
gofmt: more consistent formatting of const/var decls
- gofmt -w src misc
- only manually modified file: src/pkg/go/printer/nodes.go

R=rsc
CC=golang-dev, r
https://golang.org/cl/606041

15 years agogodoc: initial support for showing popup information
Robert Griesemer [Tue, 16 Mar 2010 21:17:42 +0000 (14:17 -0700)]
godoc: initial support for showing popup information
for identifiers in Go source code

- at the moment just show identifier kind (var, func, etc.) and name
  (eventually should show declaration, type, etc.)
- JavaScript parts by adg

R=rsc
CC=adg, golang-dev
https://golang.org/cl/578042

15 years agonet: fix IPMask.String not to crash on all-0xff mask
Russ Cox [Tue, 16 Mar 2010 21:16:33 +0000 (14:16 -0700)]
net: fix IPMask.String not to crash on all-0xff mask

R=r
CC=golang-dev
https://golang.org/cl/438042