Allow users to pass options to persist.New(). Support for bools.

This commit is contained in:
gmp
2018-08-04 16:03:00 -04:00
parent 100f65f83a
commit ee4f005b6c
3 changed files with 9 additions and 7 deletions
+2
View File
@@ -36,6 +36,8 @@ func main() {
y6 = y6p.Get()
y7p := persistIntArray("y7",[]int{1,2,3})
_ = y7p
y8p := persistBool("y8",true)
_ = y8p
z := func(interface{}) {
_ = persistFloat("y7",1.0)