1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

base64: make encode and decode public

This commit is contained in:
Henrixounez 2019-06-26 19:12:58 +02:00 committed by Alexander Medvednikov
parent c1400f725f
commit 142d3deab4

View File

@ -51,7 +51,7 @@ const (
EncodingTable = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
)
fn encode(data string) string {
pub fn encode(data string) string {
input_length := data.len
output_length := 4 * ((input_length + 2) / 3)