Reputation: 11
I had a handlerfunc:
r.HandleFunc("/getstatus_a/{price}", getStatusWithPrice).Methods("GET")
price
is int
variable, I need to initialize it inside path. How can I do that?
P.S. In getStatusWithPrice()
price
used as an argument that transmit in sql request.
Upvotes: 0
Views: 73