3 ms·
I agree. Callbacks makes sense in this context and is the idiomatic way to write the code given that's the approach used in the standard library. eg: https://g
by hnlmorg 9y ago
I agree. Callbacks makes sense in this context and is the idiomatic way to write the code given that's the approach used in the standard library. eg:
https://golang.org/pkg/path/filepath/#Walk https://golang.org/pkg/path/filepath/#Walk
https://golang.org/pkg/net/http/#HandleFunc https://golang.org/pkg/net/http/#HandleFunc