consistent
parent
ea904ea729
commit
d3f34709b3
|
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
|
|
@ -22,7 +23,7 @@ func add(config *config) error {
|
|||
}
|
||||
|
||||
func _add(filepath string, todo pttodo.Todo) error {
|
||||
target := filepath + ".todo." + uuid.New().String()
|
||||
target := fmt.Sprintf("%s.todo.%s", filepath, uuid.New().String())
|
||||
|
||||
c, err := yaml.Marshal([]pttodo.Todo{todo})
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue