mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
18 lines
277 B
Go
18 lines
277 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package remoteutil
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
)
|
|
|
|
func DialContext(ctx context.Context, network string, addr string) (net.Conn, error) {
|
|
dialer := &net.Dialer{}
|
|
|
|
conn, err := dialer.DialContext(ctx, network, addr)
|
|
|
|
return conn, err
|
|
}
|