diff --git a/doc/go1.4.html b/doc/go1.4.html index e2458f2efe..19bad0065d 100644 --- a/doc/go1.4.html +++ b/doc/go1.4.html @@ -466,11 +466,6 @@ rebuild the standard library and commands, to avoid overwriting the installation -
-TODO godoc news -
-@@ -555,14 +550,57 @@ There are no new packages in this release.
-TODO major changes
+The Scanner type in the
+bufio package
+has had a bug fixed that may require changes to custom
+split functions.
+The bug made it impossible to generate an empty token at EOF; the fix
+changes the end conditions seen by the split function.
+Previously, scanning stopped at EOF if there was no more data.
+As of 1.4, the split function will be called once at EOF after input is exhausted,
+so the split function can generate a final empty token
+as the documentation already promised.
-bufio: handling of empty tokens at EOF changed, may require scanner change (CL 145390043) -syscall: now frozen (CL 129820043); go.sys subrepo created: http://golang.org/s/go1.4-syscall -+
+Updating: Custom split functions may need to be modified to +handle empty tokens at EOF as desired. +
+ +
+The syscall package is now frozen except
+for changes needed to maintain the core repository.
+In particular, it will no longer be extended to support new or different system calls
+that are not used by the core.
+The reasons are described at length in a
+separate document.
+
+A new subrepository, go.sys, +has been created to serve as the location for new developments to support system +calls on all kernels. +It has a nicer structure, with three packages that each hold the implementation of +system calls for one of +Unix, +Windows and +Plan 9. +These packages will be curated more generously, accepting all reasonable changes +that reflect kernel interfaces in those operating systems. +See the documentation and the article mentioned above for more information. +
+ +
+Updating: Existing programs are not affected as the syscall
+package is largely unchanged from the 1.3 release.
+Future development that requires system calls not in the syscall package
+should build on go.sys instead.
+
&map[string]int{"one": 1} now prints
&map[one: 1] rather than as a hexadecimal pointer value.
-net/http package's
+Request type
+has a new BasicAuth method
+that returns the username and password from authenticated requests using the
+HTTP Basic Authentication
+Scheme.
+net/http package's
+Transport type
+has a new DialTLS function
+that simplifies setting up TLS connections.
+net/http/httputil package's
+ReverseProxy type
+has a new field,
+ErrorLog, that
+provides user control of logging.
+os package
@@ -656,21 +711,74 @@ because of changes to the implementation of interfaces in the runtime.
This saves memory but has no semantic effect.
runtime package
+now implements monotonic clocks on Windows,
+as it already did for the other systems.
+runtime package's
+Mallocs counter
+now counts very small allocations that were missed in Go 1.3.
+This may break tests using ReadMemStats
+or AllocsPerRun
+due to the more accurate answer.
+runtime package,
+an array PauseEnd
+has been added to the
+MemStats
+and GCStats structs.
+This array is a circular buffer of times when garbage collection pauses ended.
+The corresponding pause durations are already recorded in
+PauseNs
+runtime/race package
+now supports FreeBSD, which means the
+go command's -race
+flag now works on FreeBSD.
+sync/atomic package
+has a new type, Value.
+Value provides an efficient mechanism for atomic loads and
+stores of values of arbitrary type.
+syscall package's
+implementation on Linux, the
+Setuid
+and Setgid have been disabled
+because those system calls operate on the calling thread, not the whole process, which is
+different from other platforms and not the expected result.
+testing package
+has a new facility to provide more control over running a set of tests.
+If the test code contains a function
+
+func TestMain(m *testing.M)
+
-M struct contains methods to access and run the tests.
+
+
+testing package,
+a new Coverage
+function reports the current test coverage fraction,
+enabling individual tests to report how much they are contributing to the
+overall coverage.
+text/scanner package's