go-tlv icon indicating copy to clipboard operation
go-tlv copied to clipboard

ref: rename functions

Open fungaren opened this issue 1 year ago • 0 comments

rename DecodeBytes to DecodeAll rename Node.String to Node.Base64

Currently we have DecodeSingle and DecodeBytes, but it ambiguous to users that the DecodeBytes is actually DecodeAll, and DecodeSingle can also decode 'bytes'.

Summary

Describe the changes and fixes, or link to an existing issue.

Checklist

  • [ ] I have added code related to the library scope that does not focus on a specific use case.
  • [ ] I have not added a new dependency, or the code owners have agreed to it.
  • [ ] I have written tests for the new code, or the existing tests cover it completely.
  • [ ] I have not added // nolint comments to the code to fix linter issues.
  • [ ] I have not changed configuration files (CI, lint, templates, etc) without authorization.

fungaren avatar Jun 20 '23 11:06 fungaren