Return value of Type.String()
for function type doesn't match equivalent call using Go's reflect
package.
The code snippet below produces:
func
func(int, string) (bool, error)
f := func(int, string) (bool, error) { return false, nil } rt := reflect.TypeOf(f) fmt.Println(rt.String())
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4