Choose valid Go names and understand how capitalization affects visibility.
A Go name may contain letters, digits, and underscores, but it cannot begin with a digit. Names are case-sensitive, so score and Score differ.
Go code
userName := "Maya"
fmt.Println(userName)
Line-by-line explanationuserName is valid camelCase.- The short declaration stores a string.
- Println uses the exact same capitalization.
Expected outputMaya
The value is displayed successfully.
Use uppercase intentionally for package APIs, not merely for decoration. Inside one function, lowercase names are normal.