github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/tests/files/assign0b_native.gno (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"time"
     6  
     7  	"github.com/gnolang/gno/_test/net/http"
     8  )
     9  
    10  func main() {
    11  	http.DefaultClient.Timeout = time.Second * 10
    12  	fmt.Println(http.DefaultClient)
    13  	http.DefaultClient = &http.Client{}
    14  	fmt.Println(http.DefaultClient)
    15  }
    16  
    17  // Output:
    18  // &{<nil> <nil> 10s}
    19  // &{<nil> <nil> 0s}