This question already has an answer here:
I'm trying to understand the differences between Handle and HandleFunc.
Other than the differences, when would you use one over the other when building a Go web app?
https://golang.org/pkg/net/http/#Handle
</div>
You'd use whichever one fits your handler implementation. If you've implemented your handler as a function, you'd use HandleFunc
; if you've implemented it as a type with a ServeHTTP
method, you'd use Handle
.