jetster735180@lemmy.ca
on 26 Nov 2023 18:00
nextcollapse
Yeah, there is no standard.
I don’t like this repo and I’ve been recommending people avoid it for years.
If you need examples, checkout the golang source code or kubernetes repo.
SatouKazuma@lemmy.world
on 26 Nov 2023 21:13
nextcollapse
Isn’t the Google Go style guide also supposed to be pretty decent.
lysdexic@programming.dev
on 27 Nov 2023 13:16
collapse
Yeah, there is no standard.
If you read the README.md file, you’ll stumble onto the next paragraph right at its start.
This is a basic layout for Go application projects. It’s not an official standard defined by the core Go dev team; however, it is a set of common historical and emerging project layout patterns in the Go ecosystem. (…)
I don’t like this repo and I’ve been recommending people avoid it for years.
Unless you have a better reference that you can provide in place of this one, I don’t think you’re doing anyone any good. People use these documents for guidance, and no guidance at all is clearly not a better alternative to a concrete example whose worst traits is not fitting someone’s vague, subjective opinion.
jetster735180@lemmy.ca
on 28 Nov 2023 01:20
collapse
If you read the README.md file, you’ll stumble onto the next paragraph right at its start.
No need to read anything pass the project title, it says “golang-standards”. If it not standards, maybe change the project title ?
Unless you have a better reference that you can provide in place of this one, I don’t think you’re doing anyone any good.
I gave two examples in my initial comment. I can provide more, if you want.
anon_8675309@lemmy.world
on 26 Nov 2023 18:35
nextcollapse
Why do people insist on some “standard” here?
Smacks of junior developer.
SatouKazuma@lemmy.world
on 26 Nov 2023 21:12
collapse
Pretty much. Once you get into the suck, you very quickly learn there isn’t a standard beyond that which the project/org dictates.
icb4dc0de@programming.dev
on 27 Nov 2023 12:59
collapse
There’s also an experiment from the core dev team now: go.dev/blog/gonew that comes with 2 very basic templates that might be worth a look
threaded - newest
Yeah, there is no standard.
I don’t like this repo and I’ve been recommending people avoid it for years.
If you need examples, checkout the golang source code or kubernetes repo.
Isn’t the Google Go style guide also supposed to be pretty decent.
If you read the README.md file, you’ll stumble onto the next paragraph right at its start.
Unless you have a better reference that you can provide in place of this one, I don’t think you’re doing anyone any good. People use these documents for guidance, and no guidance at all is clearly not a better alternative to a concrete example whose worst traits is not fitting someone’s vague, subjective opinion.
No need to read anything pass the project title, it says “golang-standards”. If it not standards, maybe change the project title ?
I gave two examples in my initial comment. I can provide more, if you want.
Why do people insist on some “standard” here?
Smacks of junior developer.
Pretty much. Once you get into the suck, you very quickly learn there isn’t a standard beyond that which the project/org dictates.
There’s also an experiment from the core dev team now: go.dev/blog/gonew that comes with 2 very basic templates that might be worth a look