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

Struct constOrVarSymbol

protoc-gen-go/generator/generator.go:362–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362type constOrVarSymbol struct {
363 sym string
364 typ string // either "const" or "var"
365 cast string // if non-empty, a type cast is required (used for enums)
366}
367
368func (cs constOrVarSymbol) GenerateAlias(g *Generator, filename string, pkg GoPackageName) {
369 v := string(pkg) + "." + cs.sym

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected