github.com/goplusjs/gopherjs@v1.2.6-0.20211206034512-f187917453b8/compiler/natives/src/net/http/cookiejar/example_test.go (about)

     1  // +build js
     2  
     3  package cookiejar_test
     4  
     5  import "fmt"
     6  
     7  func ExampleNew() {
     8  	// network access not supported by GopherJS, and this test depends on httptest.NewServer
     9  
    10  	fmt.Println(`After 1st request:
    11    Flavor: Chocolate Chip
    12  After 2nd request:
    13    Flavor: Oatmeal Raisin`)
    14  }