Home

Published

- 1 min read

Adding Base16, 32, and 64 to the Standard Library

img of Adding Base16, 32, and 64 to the Standard Library
   import "std/encoding" for Base64
var value = Base64.encode("abcdefg")

System.print("Encode %(value)")
var decode = Base64.decode(value)System.print("Decode %(decode)")

In this week’s release, I’ve added Base16, 32, and 64 support to Fan’s standard library. Like in Go, “Package encoding defines interfaces shared by other packages that convert data to and from byte-level and textual representations”. This is the first contribution to std/encoding. Next, I’ll be working on a JSON implementation.