mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
71800a19f1
Also, add regression test.
8 lines
87 B
Go
8 lines
87 B
Go
package common
|
|
|
|
func NewAndSet[T any](v T) *T {
|
|
res := new(T)
|
|
*res = v
|
|
return res
|
|
}
|