Updating timerlist
This commit is contained in:
parent
5e83abb73b
commit
6310dc9f6b
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
A Go library for working with timer.txt files.
|
A Go library for working with timer.txt files.
|
||||||
|
|
||||||
A timer.txt file is a plain text file for timekeeping purposes. It stems from the same motivations as todo.txt (http://todotxt.org/).
|
A timer.txt file is a plain text file for timekeeping purposes. It stems from the same motivations as todo.txt (http://todotxt.org/ ).
|
||||||
|
|
||||||
This library is very similar to https://github.com/br0xen/go-todotxt, which is a fork of https://github.com/JamesClonk/go-todotxt.
|
This library is very similar to https://github.com/br0xen/go-todotxt, which is a fork of https://github.com/JamesClonk/go-todotxt.
|
||||||
|
@ -219,7 +219,7 @@ func (timerlist *TimerList) WriteToFile(file *os.File) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// WriteToFile writes a TimerList to *os.File.
|
// LoadFromFilename loads a TimerList from the filename.
|
||||||
func (timerlist *TimerList) LoadFromFilename(filename string) error {
|
func (timerlist *TimerList) LoadFromFilename(filename string) error {
|
||||||
file, err := os.Open(filename)
|
file, err := os.Open(filename)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user