github.com/m10x/go/src@v0.0.0-20220112094212-ba61592315da/net/http/transport_default_js.go (about)

     1  // Copyright 2021 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build js && wasm
     6  // +build js,wasm
     7  
     8  package http
     9  
    10  import (
    11  	"context"
    12  	"net"
    13  )
    14  
    15  func defaultTransportDialContext(dialer *net.Dialer) func(context.Context, string, string) (net.Conn, error) {
    16  	return nil
    17  }