swift-extras-base64 icon indicating copy to clipboard operation
swift-extras-base64 copied to clipboard

API is inconsistent

Open Davidde94 opened this issue 4 years ago • 0 comments

Encoding: Base64.encodeBytes(bytes: ...) (redundant "Bytes")

Decoding: Base64.decode(bytes: ...)

IMO they should both follow the "typical Swift" way, e.g. Base64.encode(bytes: ...) or even more simply Base64.encode(...)

Davidde94 avatar Jan 18 '21 14:01 Davidde94