Skip to main content

28 posts tagged with "Go"

Go Programming Language and Go Modules

View All Tags

How to Decode Base64 in Go

· 3 min read
Jagdish Kumawat
Founder @ Dewiride

Base64 turns bytes into plain text so they can travel in JSON, URLs or environment variables. Go's encoding/base64 package turns that text back into bytes with DecodeString, and returns an error when the text isn't valid base64.

How to Use the any Type in Go

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

Most Go functions say exactly what type they take. Sometimes a function must accept anything, such as a printing helper or a value parsed from JSON; for that, Go has the type any.