タグ

ブックマーク / rakyll.org (1)

  • Style guideline for Go packages · rakyll.org

    Home Archive About GitHub Mastodon Subscribe to the feed. This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. This blog is served by Hugo. Sat, Jan 14, 2017 Go is about naming and organization as much as everything else in the language. Well-organized Go code is easy to discover, use and read. Well-organized code is as critical as well designed APIs. Th

    shiftky
    shiftky 2018/01/17
    “No plurals In go, package names are not plural. This is surprising to programmers who came from other languages and are retaining an old habit of pluralizing names. Don’t name a package httputils, but httputil! package httputils // DON'T DO IT, USE SINGULAR FORM!!”
  • 1