Standard library / encoding/ascii85

encoding/ascii85.CorruptInputError.Error()

Return a diagnostic string for the stored input position. Prefer errors.As over matching the message text. Expected stdout: 'illegal ascii85 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/ascii85"  "fmt")
func must(e error) {  if e != nil {    panic(e)  }}
func main() { fmt.Println(ascii85.CorruptInputError(3).Error()) }
Go Reference