Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic list of hooks for beginning Go devs #30

Open
richarddewit opened this issue Apr 13, 2023 · 2 comments
Open

Basic list of hooks for beginning Go devs #30

richarddewit opened this issue Apr 13, 2023 · 2 comments

Comments

@richarddewit
Copy link

richarddewit commented Apr 13, 2023

I'm learning Go and I love pre-commit. This repo has A LOT of hooks, many of them overlap and I'm a bit overwhelmed.

What is a beginner-friendly list of hooks to use for a small project?

Maybe an idea to put a simple example.yaml as a TL;DR in the README

@aus-hawk
Copy link

Second this. I started using Go just a few weeks ago so I didn't know about the history of Go's module system with GOPATH and GO111MODULE. Because of that it took me a bit to figure out that since the project was started with a recent version of Go, I wanted the -mod hooks and not the -pkg ones (at least I think).

Maybe an explanation of what it means to set GO111MODULE on or off and a broad claim about the project's age would be warranted? Something like:

In general, projects that use older versions of Go will probably want to use the -pkg suite of hooks, while projects that use newer versions of Go that make use of the module system introduced by Go 1.11 will probably want to use the -mod hooks instead.

I'd make the change myself, but I'm not sure this information is actually correct, and I'd prefer someone who has a deeper knowledge of this to confirm that before giving people incorrect information. I think it's broad enough to give an answer to why you would choose one over the other and explains why the difference even exists in the first place.

@TekWizely
Copy link
Owner

Hi @richarddewit !

I know its been while since you asked your question - How has your dev journey been going?

Your question is a good one but I feel like it could be better-answered in a larger forumn.

With that, I have re-posted your question on Reddit:

Feel free to hop over there and we can try to learn from the wisdom of the crowds together :)

We may be able to use the discussion to develop some for minimal-but-userful starter yaml.

Thanks for your interest in my project, I look forward further discussion on the matter.

-TW

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

No branches or pull requests

3 participants