Skip to content

docs: update README and add examples for Equal, LoadString, and errors#7

Merged
min0625 merged 1 commit into
mainfrom
docs/update-readme-and-examples
Jun 23, 2026
Merged

docs: update README and add examples for Equal, LoadString, and errors#7
min0625 merged 1 commit into
mainfrom
docs/update-readme-and-examples

Conversation

@min0625

@min0625 min0625 commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Clarify that == is unreliable for loaded TimeZone values (pointer semantics in *time.Location) and Equal should be used instead — updated both README.md and README.zh-TW.md
  • Expand README quick-start snippet to demonstrate Equal
  • Add ExampleLoadTimeZone_errors — shows that "Local" and unknown names are rejected
  • Add ExampleTimeZone_LoadString — shows mutation via LoadString and the UTC-reset invariant

Test plan

  • make test passes (all new Example* functions are verified by go test)
  • make lint passes
  • README renders correctly on GitHub

🤖 Generated with Claude Code

…imeZone errors

Clarifies that == is unreliable for loaded TimeZone values (pointer
semantics) and Equal should be used instead. Adds runnable examples
for ExampleLoadTimeZone_errors, ExampleTimeZone_LoadString, and
expands the main README snippet to demonstrate Equal.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@min0625 min0625 merged commit 10bc229 into main Jun 23, 2026
6 checks passed
@min0625 min0625 deleted the docs/update-readme-and-examples branch June 23, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant