MCPcopy Create free account
hub / github.com/abiosoft/mold / readFile

Function readFile

engine.go:248–255  ·  view source on GitHub ↗
(fsys fs.FS, name string)

Source from the content-addressed store, hash-verified

246}
247
248func readFile(fsys fs.FS, name string) (string, error) {
249 f, err := fs.ReadFile(fsys, name)
250 if err != nil {
251 return "", fmt.Errorf("error reading file: %w", err)
252 }
253
254 return string(f), nil
255}
256
257func hasExt(exts []string, ext string) bool {
258 if ext == "" {

Callers 2

walkFunction · 0.85
setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected