Skip to content

Commit

Permalink
removed castPax
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Jun 10, 2024
1 parent 093bf17 commit e9dddce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compress/resty.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ func (o *compress) debugPrint(data interface{}) {
log.Println(data)
}
}

/*
func castPax[T any](body []byte) (*T, error) {
var obj T
if err := json.Unmarshal(body, &obj); err != nil {
return nil, err
}
return &obj, nil
}
*/

0 comments on commit e9dddce

Please sign in to comment.