transport_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 resty
   9  
  10  import (
  11  	"context"
  12  	"net"
  13  )
  14  
  15  func transportDialContext(dialer *net.Dialer) func(context.Context, string, string) (net.Conn, error) {
  16  	return dialer.DialContext
  17  }
  18