MCPcopy
hub / github.com/perkeep/perkeep / mustCreate

Function mustCreate

pkg/serverinit/serverinit.go:800–806  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

798}
799
800func mustCreate(path string) *os.File {
801 f, err := os.Create(path)
802 if err != nil {
803 log.Fatalf("Failed to create %s: %v", path, err)
804 }
805 return f
806}
807
808type multiCloser []io.Closer
809

Callers 1

InstallHandlersMethod · 0.85

Calls 2

CreateMethod · 0.80
FatalfMethod · 0.65

Tested by

no test coverage detected