Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
388
func
overwriteFile(path string, content
map
[string]
interface
{}) {
389
data, _ := json.Marshal(content)
390
ioutil.WriteFile(path, data, os.ModePerm)
391
}
Callers
1
TestModule_hotReload
Function · 0.85
Calls
1
Marshal
Method · 0.65
Tested by
no test coverage detected