MCPcopy Index your code
hub / github.com/syncthing/syncthing / defaultCopyright

Function defaultCopyright

script/copyrights.go:458–462  ·  view source on GitHub ↗
(n CopyrightNotice)

Source from the content-addressed store, hash-verified

456}
457
458func defaultCopyright(n CopyrightNotice) string {
459 year := time.Now().Format("2006")
460
461 return fmt.Sprintf("Copyright © %v, the %s authors", year, n.Name)
462}
463
464func writeNotices(path string, notices []CopyrightNotice) {
465 s := ""

Callers 1

mainFunction · 0.85

Calls 1

NowMethod · 0.65

Tested by

no test coverage detected