diff options
| author | Daniel Martí <mvdan@mvdan.cc> | 2023-03-23 08:12:30 +0000 |
|---|---|---|
| committer | Daniel Martí <mvdan@mvdan.cc> | 2023-03-25 10:16:23 +0000 |
| commit | 9768f736ea11165f10062401dec5509fdf1882ba (patch) | |
| tree | 995fb59d9a83591bd0fb7d14ff778adef680d81d /src/strconv | |
| parent | 478b1d260a21a83a090ba120efb79753495545e1 (diff) | |
| download | go-9768f736ea11165f10062401dec5509fdf1882ba.tar.xz | |
all: add a few links in package godocs
I noticed the one in path/filepath while reading the docs,
and the other ones were found via some quick grepping.
Change-Id: I386f2f74ef816a6d18aa2f58ee6b64dbd0147c9e
Reviewed-on: https://go-review.googlesource.com/c/go/+/478795
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/strconv')
| -rw-r--r-- | src/strconv/doc.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/strconv/doc.go b/src/strconv/doc.go index 769ecd9a21..fa20f902d0 100644 --- a/src/strconv/doc.go +++ b/src/strconv/doc.go @@ -14,7 +14,7 @@ // // These assume decimal and the Go int type. // -// ParseBool, ParseFloat, ParseInt, and ParseUint convert strings to values: +// [ParseBool], [ParseFloat], [ParseInt], and [ParseUint] convert strings to values: // // b, err := strconv.ParseBool("true") // f, err := strconv.ParseFloat("3.1415", 64) @@ -30,27 +30,27 @@ // ... // i := int32(i64) // -// FormatBool, FormatFloat, FormatInt, and FormatUint convert values to strings: +// [FormatBool], [FormatFloat], [FormatInt], and [FormatUint] convert values to strings: // // s := strconv.FormatBool(true) // s := strconv.FormatFloat(3.1415, 'E', -1, 64) // s := strconv.FormatInt(-42, 16) // s := strconv.FormatUint(42, 16) // -// AppendBool, AppendFloat, AppendInt, and AppendUint are similar but +// [AppendBool], [AppendFloat], [AppendInt], and [AppendUint] are similar but // append the formatted value to a destination slice. // // # String Conversions // -// Quote and QuoteToASCII convert strings to quoted Go string literals. +// [Quote] and [QuoteToASCII] convert strings to quoted Go string literals. // The latter guarantees that the result is an ASCII string, by escaping // any non-ASCII Unicode with \u: // // q := strconv.Quote("Hello, 世界") // q := strconv.QuoteToASCII("Hello, 世界") // -// QuoteRune and QuoteRuneToASCII are similar but accept runes and +// [QuoteRune] and [QuoteRuneToASCII] are similar but accept runes and // return quoted Go rune literals. // -// Unquote and UnquoteChar unquote Go string and rune literals. +// [Unquote] and [UnquoteChar] unquote Go string and rune literals. package strconv |
