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

Method writeHeader

codegen/main.go:27–37  ·  view source on GitHub ↗
(g *Generator)

Source from the content-addressed store, hash-verified

25}
26
27func (b *Build) writeHeader(g *Generator) {
28 if b.Tags != "" {
29 g.Printf(`// +build %s
30`, b.Tags)
31 }
32 g.buf.WriteString(`// Code generated by "httpsnoop/codegen"; DO NOT EDIT.
33
34package httpsnoop
35
36`)
37}
38
39func (b *Build) Implementation() *Generator {
40 ifaces := b.Interfaces

Callers 3

ImplementationMethod · 0.95
TestsMethod · 0.95
doWriteHeaderMethod · 0.80

Calls 2

PrintfMethod · 0.80
WriteStringMethod · 0.45

Tested by

no test coverage detected