MCPcopy
hub / github.com/syncthing/syncthing / writeFile

Function writeFile

script/copyrights.go:267–272  ·  view source on GitHub ↗
(path string, data string)

Source from the content-addressed store, hash-verified

265}
266
267func writeFile(path string, data string) {
268 err := os.WriteFile(path, []byte(data), 0o644)
269 if err != nil {
270 log.Fatal(err)
271 }
272}
273
274func getModules() []string {
275 ignoreRe := regexp.MustCompile(`golang\.org/x/|github\.com/syncthing|^[^.]+(/|$)`)

Callers 2

writeFunction · 0.70
writeNoticesFunction · 0.70

Calls 1

FatalMethod · 0.80

Tested by

no test coverage detected