MCPcopy Index your code
hub / github.com/felixge/httpsnoop / MustWriteFile

Method MustWriteFile

codegen/main.go:370–374  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

368}
369
370func (g *Generator) MustWriteFile(name string) {
371 if err := g.WriteFile(name); err != nil {
372 fatalf("%s", err)
373 }
374}
375
376func (g *Generator) Bytes() []byte {
377 return g.buf.Bytes()

Callers 1

MustBuildMethod · 0.80

Calls 2

WriteFileMethod · 0.95
fatalfFunction · 0.85

Tested by

no test coverage detected