code: func NewPacketStoreWithPackets(packets []packet.Generic) *PacketStore {
  	// prepare store
  	store := &PacketStore{
  		packets: make(map[packet.ID]packet.Generic),
  	}
  
  	// add packets
  	for _, pkt := range packets {
  		store.Save(pkt)
  	}
  
  	return store
  }
docs: // NewPacketStoreWithPackets returns a new PacketStore with the provided packets.