MCPcopy
hub / github.com/syncthing/syncthing / saveLanguageNames

Function saveLanguageNames

script/weblatedl.go:129–137  ·  view source on GitHub ↗
(names map[string]string)

Source from the content-addressed store, hash-verified

127}
128
129func saveLanguageNames(names map[string]string) {
130 fd, err := os.Create("prettyprint.js")
131 if err != nil {
132 log.Fatal(err)
133 }
134 fmt.Fprint(fd, "var langPrettyprint = ")
135 json.NewEncoder(fd).Encode(names)
136 fd.Close()
137}
138
139func req(url, token string) *http.Response {
140 req, err := http.NewRequest("GET", url, nil)

Callers 1

mainFunction · 0.70

Calls 3

FatalMethod · 0.80
CreateMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected