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