go-kratos / kratos

Your ultimate Go microservices framework for the cloud-native era.
https://go-kratos.dev
MIT License
23.41k stars 4.01k forks source link

(feat) Add convenient functions to return official codec in encoding package. #3397

Closed xchwan closed 3 months ago

xchwan commented 3 months ago

Description (what this PR does / why we need it):

Base on issue 3396 add convenient function for codec

Which issue(s) this PR fixes (resolves / be part of):

issue 3396

新增方便函數避免encoding重複import