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