x/pkgsite: add function to set up frontend server #40096
Milestone
Comments
I'd be happy to try and take on this issue - I'll have a look at the code you provided in the issue and try and refactor it. |
Please do! As a heads up, I'm about to merge https://go-review.googlesource.com/c/pkgsite/+/240946, which will move around some of the code in |
Awesome, I'll have a wee look at the updated code as soon as you merge :) thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are several places in the code where we set up a
frontend.NewServer
:cmd/frontend
: https://github.com/golang/pkgsite/blob/master/cmd/frontend/main.go#L94-L123internal/frontend/server_test.go
: https://github.com/golang/pkgsite/blob/master/internal/frontend/server_test.go#L990-L1031internal/testing/integration/frontend_test.go
: https://github.com/golang/pkgsite/blob/master/internal/testing/integration/frontend_test.go#L155-L167It would be useful to factor out shared parts of this code to reduce duplication.
The text was updated successfully, but these errors were encountered: