stack/stack.go
func (f *Func) IsExported() bool {
	name := f.Name()
	parts := strings.Split(name, ".")
	r, _ := utf8.DecodeRuneInString(parts[len(parts)-1])
	if unicode.ToUpper(r) == r {
		return true
	}
	return f.PkgName() == "main" && name == "main"
}
func (f *Func) IsExported() bool {
	name := f.Name()
	parts := strings.Split(name, ".")
	r, _ := utf8.DecodeRuneInString(parts[len(parts)-1])
	if unicode.ToUpper(r) == r {
		return true
	}
	return f.PkgName() == "main" && name == "main"
}
func ( f * Func ) IsExported ( ) bool { name := f . Name ( ) parts := strings . Split ( name , " " ) r , _ := utf8 . DecodeRuneInString ( parts [ len ( parts ) - 1 ] ) if unicode . ToUpper ( r ) == r { return true } return f . PkgName ( ) == " " && name == " " }
// IsExported returns true if the function is exported.
IsExported returns true if the function is exported .