this post was submitted on 02 Jul 2023
19 points (100.0% liked)

Golang

2231 readers
1 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] CodeBlooded 5 points 2 years ago* (last edited 2 years ago) (1 children)

Apparently this repo is NOT any sort of standard, yet a lot of people are fooled to believe that based on the repo’s account name and the project’s name. I see this mentioned whenever this is asked… just an FYI…

[–] foehammer 3 points 2 years ago (1 children)

Some aspects of that repo are actually language features, such as the pkg and internal directories.

[–] CodeBlooded 2 points 2 years ago (1 children)

pkg/ isn't a language feature. It's just a popular convention that used to be used in the Go standard library.

[–] foehammer 1 points 2 years ago (1 children)

The language feature is the internal/ directory, and it's function of restricting dependencies from external programs.

[–] CodeBlooded 2 points 2 years ago

That is correct, internal/ is a feature. I was just clarifying that the pkg/ folder isn’t any sort of language feature as you had said it was.