> there's no way to import both the v1 and v2 APIs at the same time in your code, so you don't have a way to declare a conversion function.
In Go major versions have different import paths. You can import multiple major versions of the same library:
import (
http_server_old "example.com/http_server"
http_server_new "example.com/http_server/v2"
)