diff --git a/api/except.txt b/api/except.txt index 850724196d..9f7f3fe934 100644 --- a/api/except.txt +++ b/api/except.txt @@ -3,6 +3,7 @@ pkg math/big, const MaxBase = 36 pkg math/big, type Word uintptr pkg net, func ListenUnixgram(string, *UnixAddr) (*UDPConn, error) pkg os, const ModeType = 2399141888 +pkg os, const ModeType = 2399666176 pkg os (linux-arm), const O_SYNC = 4096 pkg os (linux-arm-cgo), const O_SYNC = 4096 pkg syscall (darwin-386), const ImplementsGetwd = false diff --git a/doc/contrib.html b/doc/contrib.html index df53d480d3..b4b19a6af7 100644 --- a/doc/contrib.html +++ b/doc/contrib.html @@ -34,6 +34,7 @@ We encourage all Go users to subscribe to
A summary of the changes between Go releases. Notes for the major releases:
Check out the Go source code.
++A mailing list for general discussion of Go programming. +
++Questions about using Go or announcements relevant to other Go users should be sent to +golang-nuts. +
+The golang-dev @@ -66,9 +76,6 @@ mailing list is for discussing code changes to the Go project. The golang-codereviews mailing list is for actual reviewing of the code changes (CLs).
-For general discussion of Go programming, see golang-nuts.
-A mailing list that receives a message summarizing each checkin to the Go repository.
@@ -116,7 +123,7 @@ To get started, read these contribution guidelines for information on design, testing, and our code review process.
-Check the tracker for
+Check the tracker for
open issues that interest you. Those labeled
help wanted
are particularly in need of outside help.
diff --git a/doc/debugging_with_gdb.html b/doc/debugging_with_gdb.html
index f3b4e37a28..fd2c831925 100644
--- a/doc/debugging_with_gdb.html
+++ b/doc/debugging_with_gdb.html
@@ -179,7 +179,15 @@ from it.
"fmt.Print" as an unstructured literal with a "."
that needs to be quoted. It objects even more strongly to method names of
the form pkg.(*MyType).Meth.
-
"main".go
+build -ldflags=-compressdwarf=false.
+(For convenience you can put the -ldflags option in
+the GOFLAGS
+environment variable so that you don't have to specify it each time.)
+
+go1.11.1 (released 2018/10/01) includes fixes to the compiler, documentation, go
+command, runtime, and the crypto/x509, encoding/json,
+go/types, net, net/http, and
+reflect packages.
+See the Go
+1.11.1 milestone on our issue tracker for details.
+
diff --git a/doc/go1.11.html b/doc/go1.11.html index afe1939766..16b4c904cb 100644 --- a/doc/go1.11.html +++ b/doc/go1.11.html @@ -348,6 +348,20 @@ updating. See the Go 1.10 release notes for details.
+
+ The environment variable GOFLAGS may now be used
+ to set default flags for the go command.
+ This is useful in certain situations.
+ Linking can be noticeably slower on underpowered systems due to DWARF,
+ and users may want to set -ldflags=-w by default.
+ For modules, some users and CI systems will want vendoring always,
+ so they should set -mod=vendor by default.
+ For more information, see the go
+ command documentation.
+
diff --git a/doc/go_faq.html b/doc/go_faq.html index b1c15295d6..6bc9d6ef15 100644 --- a/doc/go_faq.html +++ b/doc/go_faq.html @@ -108,6 +108,26 @@ by Renée at Gophercon in 2016. He has unique features; he's the Go gopher, not just any old gopher.
++The language is called Go. +The "golang" moniker arose because the web site is +golang.org, not +go.org, which was not available to us. +Many use the golang name, though, and it is handy as +a label. +For instance, the Twitter tag for the language is "#golang". +The language's name is just plain Go, regardless. +
+ ++A side note: Although the +official logo +has two capital letters, the language name is written Go, not GO. +
+nil, execution panics
when the function is invoked, not when the "defer" statement is executed.
@@ -5572,12 +5575,13 @@ for i := 0; i <= 3; i++ {
defer fmt.Print(i)
}
-// f returns 1
+// f returns 42
func f() (result int) {
defer func() {
- result++
+ // result is accessed after it was set to 6 by the return statement
+ result *= 7
}()
- return 0
+ return 6
}
diff --git a/misc/nacl/testzip.proto b/misc/nacl/testzip.proto
index f15a2ab224..1e9279e4e0 100644
--- a/misc/nacl/testzip.proto
+++ b/misc/nacl/testzip.proto
@@ -177,6 +177,8 @@ go src=..
strconv
testdata
+
+ testdata
+ +
text
template
testdata
diff --git a/misc/wasm/wasm_exec.html b/misc/wasm/wasm_exec.html
index f5e21e40f3..72e64473eb 100644
--- a/misc/wasm/wasm_exec.html
+++ b/misc/wasm/wasm_exec.html
@@ -12,6 +12,11 @@ license that can be found in the LICENSE file.
+