Skip to content

chore(embed): improve error handling for EmbedFolder function #59

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

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

appleboy
Copy link
Member

@appleboy appleboy commented Apr 7, 2025

  • Add error handling for the EmbedFolder function
  • Add comments explaining the embedFileSystem struct and its Exists method
  • Add imports for errors and strings packages
  • Update TestEmbedFolder to handle errors from EmbedFolder function
  • Add comments in embed_folder_test.go in Chinese for test case explanations

fix #57

- Add error handling for the `EmbedFolder` function
- Add comments explaining the `embedFileSystem` struct and its `Exists` method
- Add imports for `errors` and `strings` packages
- Update `TestEmbedFolder` to handle errors from `EmbedFolder` function
- Add comments in `embed_folder_test.go` in Chinese for test case explanations

Signed-off-by: Bo-Yi Wu <[email protected]>
@appleboy appleboy changed the title docs: improve error handling and documentation for EmbedFolder function chore(embed): improve error handling for EmbedFolder function Apr 7, 2025
@appleboy appleboy merged commit 09c188b into master Apr 7, 2025
7 checks passed
@appleboy appleboy deleted the bugs branch April 7, 2025 07:22
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.

Method "embedFileSystem.Exists " does not use parameter "prefix"
1 participant