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

Golang

2201 readers
15 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 1 year ago
MODERATORS
top 8 comments
sorted by: hot top controversial new old
[–] otl@lemmy.sdf.org 1 points 1 year ago

I often point to Upspin as it's a real-world Go project by folks closely related to the Go project (including Rob Pike).

[–] CodeBlooded@programming.dev 1 points 1 year ago* (last edited 1 year 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@programming.dev 1 points 1 year ago (1 children)

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

[–] CodeBlooded@programming.dev 1 points 1 year 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@programming.dev 0 points 1 year ago (1 children)

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

[–] CodeBlooded@programming.dev 1 points 1 year 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.

[–] 23Ro@programming.dev 1 points 1 year ago

The folks over at changelog have made a quite nice podcast episode about it on gotime: https://changelog.com/gotime/278

I found the conversation to be quite insightful.

[–] austin@programming.dev 1 points 1 year ago* (last edited 1 year ago)

Not quite what you’re looking for, but Google does have an official style guide which may be slightly helpful

load more comments
view more: next ›