diff options
| author | Rebecca Stambler <rstambler@golang.org> | 2019-02-27 14:10:07 -0500 |
|---|---|---|
| committer | Rebecca Stambler <rstambler@golang.org> | 2019-03-06 23:36:59 +0000 |
| commit | e269f4ce01c458b53975fe666261b4be13160773 (patch) | |
| tree | f4e6fa06da7c3e9ff8527f420c81a93234e38a33 /src/database/sql/driver | |
| parent | 4d8a37a6d98e9524300ce669affa3f820965bc41 (diff) | |
| download | go-e269f4ce01c458b53975fe666261b4be13160773.tar.xz | |
go/constant: add Val accessor and Make constructor to handle varied types
This change adds a Val accessor that returns the underlying type for a
given constant.Value. This change also adds a Make constructor that builds a
constant.Value given a value of a specific type.
Fixes #29820
Change-Id: I4fc3f5221408e24af42ffecd21ce4099ee75b47a
Reviewed-on: https://go-review.googlesource.com/c/go/+/164538
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/database/sql/driver')
0 files changed, 0 insertions, 0 deletions
