func fixName(s string) string { cc := yang.CamelCase(s) if cc != s { if o := fixedNames[cc]; o != "" && o != s { fmt.Printf("Collision on %s and %s\n", o, s) } fixedNames[cc] = s } return cc }
// fixName returns s in camel case func (pf *protofile) fixName(s string) string { cc := yang.CamelCase(s) if cc != s { if o := pf.fixedNames[cc]; o != "" && o != s { pf.errs = append(pf.errs, fmt.Errorf("collision on %s and %s\n", o, s)) } pf.fixedNames[cc] = s } return cc }