1
0
mirror of https://github.com/golang/go synced 2024-11-19 16:44:43 -07:00
go/src
Kenny Grant 3e887ff7ea time: document that valid layouts are not valid Parse values
For #9346 #22135 explicitly state under layout constants
that they are not valid time values for Parse. Also add
examples of parsing valid RFC3339 values and the layout
to the example for time.Parse.

Fix capitalisation of time.Parse and Time.Format.

For #20869 include RFC3339 in the list of layouts that do
not accept all the time formats allowed by RFCs (lowercase z).
This does not fully address #20869.

Fixes #9346
Fixes #22135

Change-Id: Ia4c13e5745de583db5ef7d5b1688d7768bc42c1b
Reviewed-on: https://go-review.googlesource.com/74231
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-10-31 14:23:19 +00:00
..
archive archive/zip: restrict UTF-8 detection for comment and name fields 2017-10-25 22:16:46 +00:00
bufio
builtin
bytes bytes: add examples of Equal and IndexByte 2017-10-16 03:34:28 +00:00
cmd cmd/compile,runtime: update instrumentation comments 2017-10-31 14:03:10 +00:00
compress
container container/ring: fix example_test.go 2017-10-31 03:52:55 +00:00
context
crypto crypto/{ecdsa,rsa}: rename argument to PrivateKey.Sign. 2017-10-29 19:45:11 +00:00
database/sql database/sql: scan into *time.Time without reflection 2017-10-25 19:29:16 +00:00
debug debug/dwarf: clarify StructField.ByteSize doc 2017-10-18 21:45:30 +00:00
encoding encoding/xml: don't panic when custom Unmarshaler sees StartElement 2017-10-30 18:52:19 +00:00
errors
expvar
flag flag: add (*FlagSet).Name, (*FlagSet).ErrorHandling, export (*FlagSet).Output 2017-10-31 03:54:16 +00:00
fmt fmt: hide bad format in test from vet 2017-10-31 13:49:53 +00:00
go go/types: improved documentation for WriteExpr and ExprString 2017-10-23 18:10:06 +00:00
hash
html
image image/draw, image/color: optimize hot path sqDiff function 2017-10-27 05:47:09 +00:00
index/suffixarray
internal all: respect $GO_GCFLAGS during run.bash 2017-10-31 13:19:15 +00:00
io io: flatten MultiWriter writers 2017-10-25 21:48:50 +00:00
log log: Remove unnecessary else 2017-10-25 05:02:37 +00:00
math cmd/asm, cmd/internal/obj/s390x, math: add "test under mask" instructions 2017-10-30 23:55:14 +00:00
mime mime/multipart: permit empty file name 2017-10-24 20:21:03 +00:00
net net/http: display connect methods table properly in go doc 2017-10-31 14:02:12 +00:00
os os: clarify that OpenFile reqires one of O_RDONLY/O_WRONLY/O_RDWR 2017-10-31 03:23:10 +00:00
path
plugin cmd/link, plugin: always encode path 2017-10-26 15:08:37 +00:00
reflect reflect: allow Copy to a byte array or byte slice from a string 2017-10-13 02:35:56 +00:00
regexp
runtime cmd/compile,runtime: update instrumentation comments 2017-10-31 14:03:10 +00:00
sort sort: split post-Go1.4 code into its own file 2017-10-27 16:01:43 +00:00
strconv unicode: update to Unicode 10.0.0 2017-10-24 12:42:35 +00:00
strings strings: add examples for specialCase 2017-10-31 14:09:07 +00:00
sync
syscall syscall: document Time{spec,val} methods 2017-10-27 07:18:47 +00:00
testing testing/iotest: fix NewReadLogger documentation typo 2017-10-19 15:59:21 +00:00
text text/template: add break, continue actions in ranges 2017-10-17 02:06:15 +00:00
time time: document that valid layouts are not valid Parse values 2017-10-31 14:23:19 +00:00
unicode unicode: update to Unicode 10.0.0 2017-10-24 12:42:35 +00:00
unsafe
vendor/golang_org/x vendor/golang_org/x/net/route: refresh from upstream 2017-10-26 20:20:52 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash build: quiet make.bash, make.bat, make.rc 2017-10-31 13:48:53 +00:00
make.bat build: quiet make.bash, make.bat, make.rc 2017-10-31 13:48:53 +00:00
Make.dist
make.rc build: quiet make.bash, make.bat, make.rc 2017-10-31 13:48:53 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc