MCPcopy
hub / github.com/golang/protobuf / weak

Method weak

protoc-gen-go/generator/generator.go:1258–1265  ·  view source on GitHub ↗

weak returns whether the ith import of the current file is a weak import.

(i int32)

Source from the content-addressed store, hash-verified

1256
1257// weak returns whether the ith import of the current file is a weak import.
1258func (g *Generator) weak(i int32) bool {
1259 for _, j := range g.file.WeakDependency {
1260 if j == i {
1261 return true
1262 }
1263 }
1264 return false
1265}
1266
1267// Generate the imports
1268func (g *Generator) generateImports() {

Callers 1

generateImportsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected