mirror of
https://github.com/golang/go
synced 2024-11-18 18:54:42 -07:00
a044388aa5
Normally you don't want literal candidates for basic types (e.g. "int(0)") since you can type the literal value without the type name. One exception is if you are creating a named basic type that implements an interface. For example: http.Handle("/", http.FileServer(<>)) will now give "http.Dir()" as a candidate since http.Dir is a named string type that implements the required interface http.FileSystem. Change-Id: Id2470c45e469ea25cd0f9849cfdad19ac0e784bb Reviewed-on: https://go-review.googlesource.com/c/tools/+/195838 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
literal_snippets.go | ||
snippets.go.in |