code: func (p *Peer) fromDictInterface(d map[string]interface{}) {
  	p.IP = net.ParseIP(d["ip"].(string))
  	if _, ok := d["peer id"]; ok {
  		p.ID = []byte(d["peer id"].(string))
  	}
  	p.Port = int(d["port"].(int64))
  }
docs: // Set from the non-compact form in BEP 3.