project-layout icon indicating copy to clipboard operation
project-layout copied to clipboard

Why "web/template" (singular) instead of "web/templates" (plural)?

Open frederikhors opened this issue 6 years ago • 1 comments
trafficstars

Why "web/template" (singular) instead of "web/templates" (plural)?

frederikhors avatar Aug 05 '19 21:08 frederikhors

@frederikhors this is mostly based on the general guideline in Go around the package names. For example, https://rakyll.org/style-packages/ (also referenced in the main README) has a section that called 'No plurals' with a nice and short description for it. The intermediate directory names could be plural potentially, but it's nice to be consistent. There's always an exception... for example, one of the official package names is bytes :-)

kcq avatar Sep 27 '19 18:09 kcq