MCPcopy Create free account
hub / github.com/DoNewsCode/core / overwriteFile

Function overwriteFile

otkafka/integration_test.go:388–391  ·  view source on GitHub ↗
(path string, content map[string]interface{})

Source from the content-addressed store, hash-verified

386}
387
388func overwriteFile(path string, content map[string]interface{}) {
389 data, _ := json.Marshal(content)
390 ioutil.WriteFile(path, data, os.ModePerm)
391}

Callers 1

TestModule_hotReloadFunction · 0.85

Calls 1

MarshalMethod · 0.65

Tested by

no test coverage detected