INNER CODE UNIT · Go

func

rigdev/rig · cmd/rig-proto-gen/main.go:493

func (p protoField) compile(b *strings.Builder, curPkg string) {
	b.WriteString("  ")
	p.t.compile(b, curPkg)
	b.WriteString(fmt.Sprintf(" %s = %v;\n", p.name, p.idx))
}

type protoType struct {
	builtIn  *builtintType
	message  *messageType
	repeated *repeatedType
	mapType  *mapType
}

func (p protoType) compile(b *strings.Builder, curPkg string) {
	if p.builtIn != nil {
		p.builtIn.compile(b)
		return
	} else if p.message != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…