forked from mirror/client_golang
14730c70c0
As it turned out, it's not that esay to guess "common" combination of interface upgrades. So I decided to just implement all 32 possible combination of interface upgrades. (Only 16 with Go 1.7 and earlier.) Clearly, this calls for code generation. But right now, we still need to find out what's the best form of the code. For later additions, implementing code generation might be useful. Note that newDelegator is called for each HTTP request. Thus, this commit aims to make the upgrade selection quick. (After the type checks, it's just directly accessing an element in a slice.) |
||
---|---|---|
.. | ||
delegator.go | ||
delegator_1_8.go | ||
delegator_pre_1_8.go | ||
http.go | ||
http_test.go | ||
instrument_client.go | ||
instrument_client_1_8.go | ||
instrument_client_1_8_test.go | ||
instrument_server.go | ||
instrument_server_test.go |