go/src
Segev Finer 4091cf972a cmd/doc: correctly indent pre-formatted blocks
They were previously indented at the same level as the normal text when
printing a single symbol or the description of a field.

Running "go doc text/template Must":
Before:
    func Must(t *Template, err error) *Template
        Must is a helper that wraps a call to a function returning (*Template,
        error) and panics if the error is non-nil. It is intended for use in
        variable initializations such as

        var t = template.Must(template.New("name").Parse("text"))

After:
    func Must(t *Template, err error) *Template
        Must is a helper that wraps a call to a function returning (*Template,
        error) and panics if the error is non-nil. It is intended for use in
        variable initializations such as

            var t = template.Must(template.New("name").Parse("text"))

Running "go doc http Request.Header":
Before:
    type Request struct {
        // Header contains the request header fields either received
        // by the server or to be sent by the client.
        //
        // If a server received a request with header lines,
        //
        // Host: example.com
        // accept-encoding: gzip, deflate
        // Accept-Language: en-us
        // fOO: Bar
        // foo: two
        //
        // then
        //
        // Header = map[string][]string{
        // "Accept-Encoding": {"gzip, deflate"},
        // "Accept-Language": {"en-us"},
        // "Foo": {"Bar", "two"},
        // }
        ...

After:
    type Request struct {
        // Header contains the request header fields either received by the server or
        // to be sent by the client.
        //
        // If a server received a request with header lines,
        //
        //     Host: example.com
        //     accept-encoding: gzip, deflate
        //     Accept-Language: en-us
        //     fOO: Bar
        //     foo: two
        //
        // then
        //
        //     Header = map[string][]string{
        //          "Accept-Encoding": {"gzip, deflate"},
        //          "Accept-Language": {"en-us"},
        //          "Foo": {"Bar", "two"},
        //     }
        ...

Fixes #29708

Change-Id: Ibe1a6a7a76d6b19c5737ba6e8210e3ad0b88ce16
GitHub-Last-Rev: 439c0fe70a
GitHub-Pull-Request: golang/go#31120
Reviewed-on: https://go-review.googlesource.com/c/go/+/169957
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
2019-03-31 23:35:35 +00:00
..
archive
bufio
builtin builtin: make len's godoc less ambiguous 2019-03-13 20:57:32 +00:00
bytes bytes, strings: add tests for TrimLeftFunc and TrimRightFunc 2019-03-29 14:16:35 +00:00
cmd cmd/doc: correctly indent pre-formatted blocks 2019-03-31 23:35:35 +00:00
compress cmd/go: further reduce init work 2019-03-31 10:49:55 +00:00
container
context context: don't depend on fmt 2019-03-27 02:37:56 +00:00
crypto cmd/go: further reduce init work 2019-03-31 10:49:55 +00:00
database/sql database/sql: add example for DB.Prepare and Tx.Prepare 2019-03-25 15:51:17 +00:00
debug debug/dwarf: more graceful handling of unsupported types 2019-03-15 17:33:46 +00:00
encoding encoding/json: fix performance regression in the decoder 2019-03-18 07:58:23 +00:00
errors fmt: make type of fmt.Errorf the same as that of errors.New 2019-03-14 09:45:22 +00:00
expvar
flag cmd/go: further reduce init work 2019-03-31 10:49:55 +00:00
fmt fmt: fix spelling mistake in example 2019-03-25 21:03:10 +00:00
go go/ast: fix SortImports to handle block comments 2019-03-28 23:49:52 +00:00
hash
html
image image/png: add Fuzz function 2019-03-22 09:07:09 +00:00
index/suffixarray
internal internal/bytealg: simplify memchr for wasm 2019-03-29 03:59:19 +00:00
io
log log: expose Writer() method of the standard logger 2019-03-25 01:18:56 +00:00
math math/big: temporarily disable buggy shlVU assembly for arm64 2019-03-27 23:40:12 +00:00
mime mime: add javascript module mime type (.mjs) 2019-03-27 17:30:53 +00:00
net cmd/go: further reduce init work 2019-03-31 10:49:55 +00:00
os os/user: use os.UserHomeDir for user.HomeDir 2019-03-28 15:02:16 +00:00
path path/filepath: add examples for Base, Dir and IsAbs 2019-03-25 02:57:06 +00:00
plugin cmd/compile: reorganize init functions 2019-03-18 20:10:55 +00:00
reflect reflect: initialize ptrdata earlier in StructOf 2019-03-26 03:54:07 +00:00
regexp
runtime runtime: always mask shift amount regardless of architecture 2019-03-31 15:45:58 +00:00
sort sort, internal/reflectlite: flesh out reflectlite enough for use by sort 2019-03-27 04:58:23 +00:00
strconv
strings bytes, strings: add tests for TrimLeftFunc and TrimRightFunc 2019-03-29 14:16:35 +00:00
sync
syscall syscall/js: improve Value.String() for non-string values 2019-03-28 09:36:43 +00:00
testdata
testing testing: correct two spelling/grammar issues 2019-03-25 22:26:21 +00:00
text text/template: allow using -}} with many spaces 2019-03-24 09:06:14 +00:00
time time: optimize Sub 2019-03-19 04:10:33 +00:00
unicode
unsafe
vendor
Make.dist
all.bash
all.bat
all.rc
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
go.mod
go.sum
iostest.bash
make.bash
make.bat
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc