z_0_filetest.gno
0.30 Kb ยท 24 lines
1// PKGPATH: gno.land/r/test
2package test
3
4import (
5 "std"
6
7 "gno.land/p/n2p5/loci"
8)
9
10var store *loci.LociStore
11
12func init() {
13 store = loci.New()
14}
15
16func main() {
17 caller := std.PreviousRealm()
18
19 store.Set([]byte("hello, world"))
20 println(string(store.Get(caller.Address())))
21}
22
23// Output:
24// hello, world