From 142d3deab44ee346e1c16fc981e705081d479e52 Mon Sep 17 00:00:00 2001 From: Henrixounez Date: Wed, 26 Jun 2019 19:12:58 +0200 Subject: [PATCH] base64: make encode and decode public --- base64/base64.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base64/base64.v b/base64/base64.v index 5c801a47d0..6c6152de44 100644 --- a/base64/base64.v +++ b/base64/base64.v @@ -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)