diff options
author | xengineering <me@xengineering.eu> | 2024-02-15 20:35:21 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-02-15 20:35:21 +0100 |
commit | 38ee758c3d553faae683169eb74f2e6de0ab4207 (patch) | |
tree | 95009151b40901466fc7524e13feaddf9eb51528 /vendor/github.com/mattn/go-sqlite3/convert.go | |
parent | bfd936ab717c6d4e4e50bbd0f797c3d1fc7eda42 (diff) | |
download | ceres-38ee758c3d553faae683169eb74f2e6de0ab4207.tar ceres-38ee758c3d553faae683169eb74f2e6de0ab4207.tar.zst ceres-38ee758c3d553faae683169eb74f2e6de0ab4207.zip |
Update github.com/mattn/go-sqlite3 to v1.14.22
Diffstat (limited to 'vendor/github.com/mattn/go-sqlite3/convert.go')
-rw-r--r-- | vendor/github.com/mattn/go-sqlite3/convert.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vendor/github.com/mattn/go-sqlite3/convert.go b/vendor/github.com/mattn/go-sqlite3/convert.go index 0385073..f7a9dcd 100644 --- a/vendor/github.com/mattn/go-sqlite3/convert.go +++ b/vendor/github.com/mattn/go-sqlite3/convert.go @@ -23,7 +23,7 @@ var errNilPtr = errors.New("destination pointer is nil") // embedded in descript // convertAssign copies to dest the value in src, converting it if possible. // An error is returned if the copy would result in loss of information. // dest should be a pointer type. -func convertAssign(dest, src interface{}) error { +func convertAssign(dest, src any) error { // Common cases, without reflect. switch s := src.(type) { case string: @@ -55,7 +55,7 @@ func convertAssign(dest, src interface{}) error { } *d = string(s) return nil - case *interface{}: + case *any: if d == nil { return errNilPtr } @@ -97,7 +97,7 @@ func convertAssign(dest, src interface{}) error { } case nil: switch d := dest.(type) { - case *interface{}: + case *any: if d == nil { return errNilPtr } @@ -149,7 +149,7 @@ func convertAssign(dest, src interface{}) error { *d = bv.(bool) } return err - case *interface{}: + case *any: *d = src return nil } @@ -256,7 +256,7 @@ func cloneBytes(b []byte) []byte { return c } -func asString(src interface{}) string { +func asString(src any) string { switch v := src.(type) { case string: return v |