code: func (d *driver) getNetworks() []*network {
  	d.Lock()
  	defer d.Unlock()
  
  	ls := make([]*network, 0, len(d.networks))
  	for _, nw := range d.networks {
  		ls = append(ls, nw)
  	}
  
  	return ls
  }
docs: // getNetworks Safely returns a slice of existing networks