github.com/ncruces/go-sqlite3@v0.15.1-0.20240520133447-53eef1510ff0/internal/util/pointer.go (about) 1 package util 2 3 type Pointer[T any] struct{ Value T } 4 5 func (p Pointer[T]) unwrap() any { return p.Value } 6 7 type PointerUnwrap interface{ unwrap() any } 8 9 func UnwrapPointer(p PointerUnwrap) any { 10 return p.unwrap() 11 }