Code
Hub
Workspaces
Digest
Agents
Trending
Connect
MCP
copy
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
370
func
(g *Generator) MustWriteFile(name string) {
371
if
err := g.WriteFile(name); err != nil {
372
fatalf(
"%s"
, err)
373
}
374
}
375
376
func
(g *Generator) Bytes() []byte {
377
return
g.buf.Bytes()
Callers
1
MustBuild
Method · 0.80
Calls
2
WriteFile
Method · 0.95
fatalf
Function · 0.85
Tested by
no test coverage detected