File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,12 @@ var theEntry Entry
284
284
//
285
285
// Connect can be called many times without cost of re-initialising a
286
286
// connection. Connect can be called in different goroutines.
287
+ //
288
+ // The argument pkgSel is used to filter the implementions of
289
+ // an entry point by means of examining their defining package path
290
+ // by reflection. It should return true if it accepts the
291
+ // implementation. If pkgSel is nil, Connect acts as though
292
+ // the function body were "return true".
287
293
func Connect (pkgSel func (string ) bool ) (Entry , error ) {
288
294
nms := Names ()
289
295
if len (nms ) == 0 {
@@ -299,8 +305,10 @@ func Connect(pkgSel func(string) bool) (Entry, error) {
299
305
// ConnectTo returns ErrEntryInUse if another host entry other than one
300
306
// requested is in use.
301
307
//
302
- // Connect can be called many times without cost of re-initialising a
303
- // connection. Connect can be called in different goroutines.
308
+ // ConnectTo can be called many times without cost of re-initialising a
309
+ // connection. ConnectTo can be called in different goroutines.
310
+ //
311
+ // pkgSel is as in Connect.
304
312
func ConnectTo (name string , pkgSel func (string ) bool ) (Entry , error ) {
305
313
hMu .Lock ()
306
314
defer hMu .Unlock ()
You can’t perform that action at this time.
0 commit comments