Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kitagry/go-todotxt
Simple todo.txt library for Go
https://github.com/kitagry/go-todotxt
golang
Last synced: 15 days ago
JSON representation
Simple todo.txt library for Go
- Host: GitHub
- URL: https://github.com/kitagry/go-todotxt
- Owner: kitagry
- Created: 2020-02-14T09:43:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-18T05:26:34.000Z (almost 5 years ago)
- Last Synced: 2024-12-15T14:43:50.369Z (20 days ago)
- Topics: golang
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-todotxt
Simple todo.txt library.
## Usage
```go
import "github.com/kitagry/go-todotxt"f, err := os.Open("todo.txt")
r := todotxt.NewReader(f)
tasks, err := r.ReadAll()for _, task := range tasks {
task.SetDescription(task.Description() + " +Project")
}f, err := os.Write("todo.txt")
w := todotxt.NewWriter(f)
w.WriteAll(tasks)
```## Tools
### Install
```
$ cd cmd/todotxt
$ go install
```![go-todotxt](https://user-images.githubusercontent.com/21323222/74706397-3cdef380-525a-11ea-9877-458ae3b6cebd.gif)
## License
MIT
## Author
Ryo Kitagawa