mirror of https://github.com/golang/go.git
In support of https://golang.org/cl/224960, add utility functions that create zero value expressions for a given types.Type. There are probably some bugs here but they pass the basic tests in that CL. Known problems: it skips through type aliases, and can't handle anonymous structs/interfaces. Hopefully it's pretty unusual to return those. Change-Id: I69a388d9ce9bd60bc230e4a3d2b30f581ec25698 Reviewed-on: https://go-review.googlesource.com/c/tools/+/225177 Run-TryBot: Heschi Kreinick <heschi@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rohan Challa <rohan@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| apidiff | ||
| fastwalk | ||
| gocommand | ||
| gopathwalk | ||
| imports | ||
| jsonrpc2 | ||
| lsp | ||
| memoize | ||
| packagesinternal | ||
| span | ||
| telemetry | ||
| testenv | ||
| tool | ||
| xcontext | ||