We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not sure how to do this. Can get a list of routes each of which is a struct;
type RouteInfo struct { Method string Path string Handler string }
So if the handler func is main.Handler then the actual string in the struct is dependent on the location the file is at test time so could be;
main.Handler
github.com/joshgree/showcase_project/endpoint.Handler for instance.
github.com/joshgree/showcase_project/endpoint.Handler
However this is liable to change when testing locally and testing during build. Would like something along the lines of __file__ in python!?
__file__
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Not sure how to do this. Can get a list of routes each of which is a struct;
So if the handler func is
main.Handler
then the actual string in the struct is dependent on the location the file is at test time so could be;github.com/joshgree/showcase_project/endpoint.Handler
for instance.However this is liable to change when testing locally and testing during build. Would like something along the lines of
__file__
in python!?The text was updated successfully, but these errors were encountered: