DEV Community

Discussion on: Go's method is curried funtion

Collapse
 
mattn profile image
Yasuhiro Matsumoto

Yes, most of cases, the function will not be called directly. As I wrote in above, it is often used as function object. See os/exec.go in Go repository.

runtime.SetFinalizer(p, (*Process).Release)