Functional options to persist.Init().
This commit is contained in:
@@ -12,9 +12,9 @@ import (
|
||||
|
||||
type Var_N persist.Var
|
||||
|
||||
func New(name string, x _T, opt ...persist.Option) *Var_N {
|
||||
func New(name string, x _T, ps ...bool) *Var_N {
|
||||
gob.Register(x)
|
||||
ptr := persist.New(name, x, opt...)
|
||||
ptr := persist.New(name, x, ps...)
|
||||
ret := (*Var_N)(unsafe.Pointer(ptr))
|
||||
return ret
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user