File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ type MySQLDriver struct{}
31
31
// DialFunc is a function which can be used to establish the network connection.
32
32
// Custom dial functions must be registered with RegisterDial
33
33
//
34
- // Deprecated: users should register a DialContextFunction instead
34
+ // Deprecated: users should register a DialContextFunc instead
35
35
type DialFunc func (addr string ) (net.Conn , error )
36
36
37
- // DialContextFund is a function which can be used to establish the network connection.
37
+ // DialContextFunc is a function which can be used to establish the network connection.
38
38
// Custom dial functions must be registered with RegisterDialContext
39
39
type DialContextFunc func (ctx context.Context , addr string ) (net.Conn , error )
40
40
44
44
)
45
45
46
46
// RegisterDialContext registers a custom dial function. It can then be used by the
47
- // network address ` mynet(addr)` , where ` mynet` is the registered new network.
47
+ // network address mynet(addr), where mynet is the registered new network.
48
48
// The current context for the connection and its address is passed to the dial function.
49
49
func RegisterDialContext (net string , dial DialContextFunc ) {
50
50
dialsLock .Lock ()
You can’t perform that action at this time.
0 commit comments