Static website for golang packages

I need to have golang packages site (that contains html with meta tags)
without v2/v3 versions all works fine, but how to deal with my.domain/xxx/v3 packages?
Hugo creates public/xxx/v3/index.html that breaks go get because it tries to get my.domain/xxx/v3?go-get=1 but github create redirect to my.domain/xxx/v3/?go-get=1 and this breaks go get.
so as understand i need to have v3 file that will be served, not v3 dir with index.html file inside it.

how can i do needed functional ?