• CodeBlooded@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 years ago

    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…

      • CodeBlooded@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        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
          link
          fedilink
          English
          arrow-up
          0
          ·
          2 years ago

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

          • CodeBlooded@programming.dev
            link
            fedilink
            English
            arrow-up
            1
            ·
            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.