MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / replaceStrings

Function replaceStrings

server/static/static.go:52–57  ·  view source on GitHub ↗
(content string, replacements map[string]string)

Source from the content-addressed store, hash-verified

50}
51
52func replaceStrings(content string, replacements map[string]string) string {
53 for old, new := range replacements {
54 content = strings.Replace(content, old, new, 1)
55 }
56 return content
57}
58
59func initIndex(siteConfig SiteConfig) {
60 utils.Log.Debug("Initializing index.html...")

Callers 2

initIndexFunction · 0.85
UpdateIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected