github.com/HaHadaxigua/yaegi@v1.0.1/_test/fun6.go (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>}