ft-sync/file/writer.go
Simon Vieille 3af050caa0 add gorm
add history init/pull/push
2024-08-28 20:36:03 +02:00

12 lines
195 B
Go

package file
import (
"os"
"strings"
)
func WriteDatabase(file string, data []string) error {
content := []byte(strings.Join(data, "\n") + "\n")
return os.WriteFile(file, content, 0644)
}