Пример #1
0
//Name is safe for use in graph
func (b baseType) Name() string {
	retval := b.pkgName
	if retval == *defaultPackageName {
		retval = ""
	} else if retval != "" {
		retval += periodReplacement
	}
	retval += gographviz.SafeName(b.name)
	return retval
}
Пример #2
0
func (u *unknownNode) Name() string {
	return gographviz.SafeName(u.target.name)
}