Skip to content

Conversation

@puresweep2
Copy link

@puresweep2 puresweep2 bot commented Sep 12, 2023

Description

This PR adds functionality to the main.go file to create and modify the README.md file. If the README.md file does not exist, it creates a new file and appends the paragraph "This is an experimental project" to it. If the file already exists, it opens it in append mode and adds the paragraph to the end.

Summary of Changes

  • Added a new function named "checkAndModifyReadme" to handle the creation and modification of the README.md file.
  • The function checks if the README.md file exists in the root directory of the project.
  • If the file does not exist, it creates a new README.md file.
  • If the file exists, it opens it in append mode.
  • The function writes the paragraph "This is an experimental project" to the README.md file.
  • The function saves and closes the README.md file.
  • Called the "checkAndModifyReadme" function in the main function of the program.

Please review and merge this PR. Thank you!

Fixes #5.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/add-readme-functionality

🎉 Latest improvements to Sweep:

  • Use Sweep Map to break large issues into smaller sub-issues, perfect for large tasks like "Sweep (map): migrate from React class components to function components"
  • Getting Sweep to format before committing! Check out Sweep Sandbox Configs to set it up.
  • We released a demo of our chunker, where you can find the corresponding blog and code.

💡 To get Sweep to edit this pull request, you can:

  • Leave a comment below to get Sweep to edit the entire PR
  • Leave a comment in the code will only modify the file
  • Edit the original issue to get Sweep to recreate the PR from scratch

@puresweep2 puresweep2 bot added the sweep label Sep 12, 2023
@puresweep2 puresweep2 bot mentioned this pull request Sep 12, 2023
1 task
@taherv
Copy link
Owner

taherv commented Sep 12, 2023

Reset main.go

Don't generate any golang code. Just make the change requested in the issue by editing README.md file directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sweep: Add something to README.md

2 participants