postmanlabs / postman-code-generators

Common repository for all code generators shipped with Postman
Apache License 2.0
992 stars 350 forks source link

golang : ioutil.ReadAll is deprecated from Go 1.16 #719

Closed panapol-p closed 2 months ago

panapol-p commented 1 year ago

I saw deprecated function in go code generator

after Go 1.16 ioutil.ReadAll(...) is deprecated, we should use io.ReadAll(...) instead

Doc ref : https://pkg.go.dev/io/ioutil#ReadAll Code : https://github.com/postmanlabs/postman-code-generators/blob/2411e41a03c59515fb78e363b0c93ba57f7d030b/codegens/golang/lib/index.js#L300C82-L300C96

panapol-p commented 2 months ago

Hi, @theonly1me could you pleaes help to review this change.

panapol-p commented 2 months ago

merged #721 , #762

@theonly1me and @VShingala Thank you for the review and the commit fixes.