github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/fun6.gno (about) 1 package main 2 3 import ( 4 "fmt" 5 "sync" 6 ) 7 8 func NewPool() Pool { return Pool{} } 9 10 type Pool struct { 11 P *sync.Pool 12 } 13 14 var _pool = NewPool() 15 16 func main() { 17 fmt.Println(_pool) 18 } 19 20 // Output: 21 // {<nil>}