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

[feature/reborn] Add FORMAT control in template for resume generation #4

Merged
merged 10 commits into from
Oct 3, 2024

Conversation

atlet99
Copy link
Owner

@atlet99 atlet99 commented Oct 3, 2024

No description provided.

…plate:

- Added function `generateResumeInFormat` to centralize resume generation logic for PDF and DOCX formats.
- Implemented template-based format extraction with `extractFormatFromTemplate`.
- If no format is specified in the template, the default behavior generates both PDF and DOCX.
- Improved error handling and logging for format-specific resume generation.
- Removed code duplication and streamlined format switching logic.
- Added error handling for each call to pdf.Cell to ensure that any errors are properly logged and handled.
- Ensured that the PDF generation process terminates with an error if any issue occurs while adding content to the PDF.
- Resolved linter issues reported by golangci-lint regarding unchecked error return values from pdf.Cell.
- Updated module path in go.mod.
- Resolved issue with Go module analysis tools, including Go Report Card.
- Corrected import paths in all project files.
- Ensured proper module path in go.mod.
- Cleaned and updated dependencies using `go mod tidy`.
- Resolved issues with missing module versions and linter errors caused by incorrect imports.
- Replaced incorrect import paths.
- Cleaned and updated Go module dependencies using `go mod tidy`.
- Resolved issues with Go module resolution and module caching.
- Introduced a new `FORMAT` variable in the template to control the resume generation format (PDF, DOC, or BOTH).
- Updated the template structure to include a `FORMAT` line, allowing users to specify the desired output format.
- If `FORMAT` is not specified in the template, the default behavior is to generate both PDF and DOC formats.
- Simplified format switching logic in the code to use the format value from the template.
@atlet99 atlet99 self-assigned this Oct 3, 2024
@atlet99 atlet99 merged commit 08f5dc5 into main Oct 3, 2024
9 checks passed
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