Skip to content

docs: clarify single-word Go naming conventions - #1022

Closed
Vishal202-rgb wants to merge 1 commit into
google:gh-pagesfrom
Vishal202-rgb:fix/go-single-word-naming
Closed

Vishal202-rgb wants to merge 1 commit into
google:gh-pagesfrom
Vishal202-rgb:fix/go-single-word-naming

Conversation

@Vishal202-rgb

Copy link
Copy Markdown

Summary

Clarifies the naming convention for single-word identifiers in the Go Style Guide.

Changes

  • Clarified that single-word unexported names begin with a lowercase letter.
  • Clarified that single-word exported names begin with an uppercase letter.
  • Kept the clarification consistent with the existing capitalization rules in the MixedCaps section.

Issue

Fixes #940

Testing

  • Reviewed the resulting documentation diff.
  • Ran git diff --check successfully with no whitespace errors.
  • Verified that only go/guide.md was modified.

@google-cla

google-cla Bot commented Oct 2, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@vapier vapier added the lang:go The Go language label Oct 2, 2026
@KatrinaHoffert

KatrinaHoffert commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Hi, thanks for your contribution, but I'm afraid per https://github.com/google/styleguide#contributing, we don't accept external contributions. We don't mention anything on single word names because it's enforced by Go as a language and is more or less standard for camelCase, so there's no real style implications.

@Vishal202-rgb
Vishal202-rgb deleted the fix/go-single-word-naming branch October 3, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang:go The Go language

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarification needed for single-word naming conventions in Go Style Guide

3 participants