project-layout
project-layout copied to clipboard
Why "web/template" (singular) instead of "web/templates" (plural)?
trafficstars
Why "web/template" (singular) instead of "web/templates" (plural)?
@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 :-)