| 12345678910111213141516171819202122232425 |
- package buggo
- import (
- "os"
- )
- func readPath(path string) (output string, err error) {
- content, err := os.ReadFile(path)
- if err != nil {
- return "", err
- }
- for _, line := range content {
- output = output + string(line)
- }
- return output, nil
- }
- // Writes a bug to disk
- func WriteBug(bug Bug) (success bool, err error) { return false, nil } // TODO: implement
- // Removes a bug from disk
- func DeleteBug(bug Bug) (success bool, err error) { return false, nil } // TODO: implement
|