code: func (cfg *discoveryProcessConfig) NewDiscoveryProcess() *discoveryProcess {
  	port := int(atomic.LoadInt32(&discoveryBasePort))
  	atomic.AddInt32(&discoveryBasePort, 2)
  
  	copied := *cfg
  	copied.webPort = port
  	copied.discoveryHost = fmt.Sprintf("http://localhost:%d", copied.webPort)
  
  	return &discoveryProcess{cfg: &copied}
  }
docs: // NewDiscoveryProcess creates a new 'discoveryProcess'.