Standard library / encoding/base32

encoding/base32.CorruptInputError.Error()

Format the stored error position for diagnostics; the string is not a stable machine-readable protocol. Expected stdout: 'illegal base32 data at input byte 3\n'.

Formal Syntax & Structure

go syntaxgo
func (e CorruptInputError) Error() string

Return Value

string

Text representation.

Working Example

Example Snippetgo
package main
import (  "encoding/base32"  "fmt")
func must(e error) {  if e != nil {    panic(e)  }}
func main() { fmt.Println(base32.CorruptInputError(3).Error()) }
Go Reference