consistent
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user