A lot of the all lowercase names were chosen before we had really figured out what the naming conventions should be. The rule we adopted, which might be worth revisiting later, was that entry points in package
syscall, which are named after equivalents in C, just had a single capital at the beginning, to avoid needing to decide where the internal capitalizations are in abbreviations like
chdir. Names like
Readdirnames, which are actual words, might be worth revisiting at some point.
Is there any sort of rule about the casing of functions used in the "
os" package? Looking through, it doesn't sound like it's very easy to recall whether a given function should be called
Mkdir MkdirAll TempDir Getenv ForkExec Readlink ReadAt Readdir
It feels very ad-hoc, and hard to recall.
It's a known issue. It's unplanned.