There are times a parameter used to pass a method of path for an HTTP handler looks like this:
basePath + "/query"
Where basePath is a constant. I believe in the AST this would translate to a ast.BinaryExpr expression. From there there, we'd get a X, Y, and Op elements. Op would be the operator, which would have to be + and X, this example, would be a constant and Y a basic literal. The idea is to extract both values and add them together when resolving the path argument of a function.
There are times a parameter used to pass a method of path for an HTTP handler looks like this:
Where
basePath
is a constant. I believe in the AST this would translate to aast.BinaryExpr
expression. From there there, we'd get a X, Y, and Op elements.Op
would be the operator, which would have to be+
and X, this example, would be a constant and Y a basic literal. The idea is to extract both values and add them together when resolving the path argument of a function.