MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / ReadFile

Function ReadFile

internal/util/util.go:705–707  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

703}
704
705func ReadFile(path string) ([]byte, error) {
706 return os.ReadFile(filepath.FromSlash(path))
707}
708
709func WriteFile(path string, data []byte, perm os.FileMode) error {
710 return os.WriteFile(filepath.FromSlash(path), data, perm)

Callers 15

mainFunction · 0.92
loadAltsFunction · 0.92
loadUserByIdFunction · 0.92
LoadUserFunction · 0.92
GetScriptMethod · 0.92
GetScriptMethod · 0.92
ReloadConfigFunction · 0.92
LoadFunction · 0.92
extractSectionCommentsFunction · 0.92
ProcessFunction · 0.92
LoadGameTimeConfigsFunction · 0.92
GetScriptMethod · 0.92

Calls 1

ReadFileMethod · 0.45

Tested by

no test coverage detected