MCPcopy Create free account
hub / github.com/Mister-leo/fssh / readFileOrEmpty

Function readFileOrEmpty

cmd/fssh/config_gen.go:59–63  ·  view source on GitHub ↗
(p string)

Source from the content-addressed store, hash-verified

57}
58
59func readFileOrEmpty(p string) string {
60 b, err := os.ReadFile(p)
61 if err != nil { return "" }
62 return string(b)
63}
64
65func hasHostBlock(content, host string) bool {
66 s := bufio.NewScanner(strings.NewReader(content))

Callers 1

cmdConfigGenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected