Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Using pacakges.NeedName #418

Merged
merged 1 commit into from
Mar 28, 2020
Merged

Using pacakges.NeedName #418

merged 1 commit into from
Mar 28, 2020

Conversation

linzhp
Copy link
Contributor

@linzhp linzhp commented Mar 26, 2020

Description

packages.LoadFiles is deprecated. It is not future-proof to use it. In addition, I found all mockgen need is Package.PkgPath, so packages.NeedName is sufficient.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests

Reviewer Notes

  • The code flow looks good.
  • Tests added.

@codyoss codyoss self-requested a review March 26, 2020 14:35
@codyoss
Copy link
Member

codyoss commented Mar 26, 2020

We had talked about this internally at one time. @cvgw Brought this up, and I believe this should be safe.

@codyoss codyoss requested a review from cvgw March 26, 2020 17:31
@codyoss codyoss merged commit ccaa079 into golang:master Mar 28, 2020
@codyoss
Copy link
Member

codyoss commented Mar 28, 2020

Thank you for your contribution 🎆

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy