base64: make encode and decode public

pull/689/head
Henrixounez 2019-06-26 19:12:58 +02:00 committed by Alexander Medvednikov
parent c1400f725f
commit 142d3deab4
1 changed files with 1 additions and 1 deletions

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)