code: func (p PinSliceBySubdir) ToMap() PinMapBySubdir {
  	ret := make(PinMapBySubdir, len(p))
  	for subdir, pkgs := range p {
  		ret[subdir] = pkgs.ToMap()
  	}
  	return ret
  }
docs: // ToMap converts this to a PinMapBySubdir