code: func NewLink(parentIP, childIP, name string, env []string, exposedPorts map[nat.Port]struct{}) *Link {
  	var (
  		i     int
  		ports = make([]nat.Port, len(exposedPorts))
  	)
  
  	for p := range exposedPorts {
  		ports[i] = p
  		i++
  	}
  
  	return &Link{
  		Name:             name,
  		ChildIP:          childIP,
  		ParentIP:         parentIP,
  		ChildEnvironment: env,
  		Ports:            ports,
  	}
  }
docs: // NewLink initializes a new Link struct with the provided options.