Debian Codegraph @

libgo/go/net/http/transport_default_other.go

raw
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 dialer.DialContext
17 }