chore: comment out unused code
parent
de1cb4c4fb
commit
afa4621964
|
@ -495,15 +495,15 @@ func paramID(key string, r *http.Request) (int, error) {
|
|||
return id, nil
|
||||
}
|
||||
|
||||
func paramInt64(key string, r *http.Request) (int64, error) {
|
||||
ctx := r.Context()
|
||||
param := httprouter.GetParamFromContext(ctx, key)
|
||||
v, err := strconv.ParseInt(param, 10, 64)
|
||||
if err != nil {
|
||||
return -1, fmt.Errorf("Error converting parameter %s", param)
|
||||
}
|
||||
return v, nil
|
||||
}
|
||||
// func paramInt64(key string, r *http.Request) (int64, error) {
|
||||
// ctx := r.Context()
|
||||
// param := httprouter.GetParamFromContext(ctx, key)
|
||||
// v, err := strconv.ParseInt(param, 10, 64)
|
||||
// if err != nil {
|
||||
// return -1, fmt.Errorf("Error converting parameter %s", param)
|
||||
// }
|
||||
// return v, nil
|
||||
// }
|
||||
|
||||
func paramStr(key string, r *http.Request) (string, error) {
|
||||
ctx := r.Context()
|
||||
|
|
Loading…
Reference in New Issue