mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
9 lines
129 B
Go
9 lines
129 B
Go
package util
|
|
|
|
func Unwrap[T any](v T) T {
|
|
if u, ok := any(v).(interface{ Unwrap() T }); ok {
|
|
return u.Unwrap()
|
|
}
|
|
return v
|
|
}
|