Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick Update: Refactoring for Better Code Consistency #14

Merged
merged 2 commits into from
Mar 1, 2025

Conversation

Tom5521
Copy link
Owner

@Tom5521 Tom5521 commented Mar 1, 2025

  1. Header Option Functions
    The header option functions have been renamed to start with HeaderWith for better clarity and consistency. This makes the code easier to follow and aligns with our naming standards.

  2. Configuration Naming
    The Config type is now PoConfig, and related types/functions have been updated to use PoConfig and PoOption. We also tweaked LocationMode to PoLocationMode to keep things consistent.

These changes are all about making the codebase cleaner and more intuitive. Check out the commits for details:

Tom5521 added 2 commits March 1, 2025 15:44
- Renamed `Config` to `PoConfig` to better reflect its usage in the PO compiler.
- Updated related types and functions to use `PoConfig` and `PoOption` for consistency.
- Removed the old `config.go` file and introduced `po_config.go` with the new configuration structure.
- Updated all references to `Config` and `Option` in the codebase to use the new `PoConfig` and `PoOption` types.
- Adjusted the `LocationMode` to `PoLocationMode` to align with the new naming convention.
- Renamed header option functions to follow a consistent naming convention by prefixing them with `HeaderWith`.
- Updated all references to these functions in the codebase to use the new naming convention.
- This change improves code readability and aligns with the project's naming standards.
@Tom5521 Tom5521 linked an issue Mar 1, 2025 that may be closed by this pull request
@Tom5521 Tom5521 merged commit e1ba19c into main Mar 1, 2025
@Tom5521 Tom5521 removed a link to an issue Mar 1, 2025
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