MCPcopy
hub / github.com/syncthing/syncthing / writeNotices

Function writeNotices

script/copyrights.go:464–470  ·  view source on GitHub ↗
(path string, notices []CopyrightNotice)

Source from the content-addressed store, hash-verified

462}
463
464func writeNotices(path string, notices []CopyrightNotice) {
465 s := ""
466 for i, n := range notices {
467 s += "# : " + strconv.Itoa(i) + "\n" + n.String()
468 }
469 writeFile(path, s)
470}
471
472func (n CopyrightNotice) String() string {
473 return fmt.Sprintf("Type : %v\nHTML : %v\nName : %v\nModule : %v\nURL : %v\nCopyright: %v\nRepoURL : %v\nRepoCopys: %v\n\n",

Callers

nothing calls this directly

Calls 2

writeFileFunction · 0.70
StringMethod · 0.65

Tested by

no test coverage detected