net
package GO-W1011Sometimes a function, variable, constant, field, or whole package becomes redundant or unnecessary but must be kept for compatibility with existing programs. These should not be used except for compatibility with legacy systems.
network, addr := "", ""
tr := http.Transport{}
tr.Dial(network, addr)
tr.DialTLS(network, addr)
ctx := context.TODO()
network, addr := "", ""
tr := http.Transport{}
tr.DialContext(ctx, network, addr)
tr.DialTLSContext(ctx, network, addr)