Golang encoding/base32.Encoding.DecodeString function examples
package encoding/base32
DecodeString returns the bytes represented by the given input base32 string.
Golang encoding/base32.Encoding.DecodeString function usage examples
Example 1:
func codeDecode(code *string) *string {
str := new(string)
byts, _ := base32.StdEncoding.DecodeString(*code)
*str = string(byts)
return str
}
Example 2 :
secret, err := base32.StdEncoding.DecodeString("secret message here!")
Reference :
http://golang.org/pkg/encoding/base32/#Encoding.DecodeString
Advertisement
Something interesting
Tutorials
+4.8k Golang : A program that contain another program and executes it during run-time
+9.7k Golang : Load ASN1 encoded DSA public key PEM file example
+3.4k Golang : Fix go-cron set time not working issue
+11.7k Golang : How to detect a server/machine network interface capabilities?
+7.1k Golang : Gorrila mux.Vars() function example
+13.1k Golang : Convert(cast) uintptr to string example
+14.6k Golang : Convert(cast) int to float example
+9.4k Golang : Launch Mac OS X Preview (or other OS) application from your program example
+25.8k Golang : Daemonizing a simple web server process example
+6.2k Golang : Extract XML attribute data with attr field tag example