code: func (p *printer) shorten(name string) string {
  	name = strings.TrimPrefix(name, ".")
  	if p.file.GetPackage() != "" {
  		name = strings.TrimPrefix(name, p.file.GetPackage()+".")
  	}
  	return name
  }
docs: // shorten removes leading "." and trims package name if it matches p.file.