const autoNetwork … type autoDialer … func newAutoDialer(rawAddr string, argFunc func(network, addr string) []string) (*autoDialer, error) { … } // Dial implements the jsonrpc2.Dialer interface. func (d *autoDialer) Dial(ctx context.Context) (io.ReadWriteCloser, error) { … } // TODO(rFindley): remove this once we no longer need to integrate with v1 of // the jsonrpc2 package. func (d *autoDialer) dialNet(ctx context.Context) (net.Conn, error) { … }