Files
moxa/_test/defer3.go
Marc Vertes fe8c5191cd fix: implement missing defer of binary method (#33)
If the function to defer is a method of a binary object, the method
function must be resolved during defer. All other cases are already
handled.
2019-01-23 14:30:24 +01:00

17 lines
198 B
Go

package main
import (
"net/http"
"net/http/httptest"
)
func main() {
println("hello")
mux := http.NewServeMux()
server := httptest.NewServer(mux)
defer server.Close()
}
// Output:
// hello