github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/method29b.gno (about) 1 package main 2 3 import ( 4 "github.com/gnolang/gno/_test/context" 5 "github.com/gnolang/gno/_test/net" 6 ) 7 8 var lookupHost = net.DefaultResolver.LookupHost 9 10 func main() { 11 res, err := lookupHost(context.Background(), "localhost") 12 println(len(res) > 0, err == nil) 13 } 14 15 // Output: 16 // true true