INNER CODE UNIT · Go
func
rigdev/rig · cmd/rig-proto-gen/main.go:611
func (m mapValueType) validate() error {
c := 0
if m.builtIn != nil {
c++
}
if m.message != nil {
c++
}
if c != 1 {
return errors.New("mapValueType must have exactly ony of builtIn and message set")
}
return nil
}
func (m mapValueType) compile(b *strings.Builder, curPkg string) {
if m.builtIn != nil {