Standard library / compress/flate

compress/flate.CorruptInputError.Error()

Return a diagnostic message for CorruptInputError. Do not parse diagnostic text as a stable wire protocol. The value is constructed here to demonstrate formatting. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
func (e CorruptInputError) Error() string

Return Value

string

Human-readable diagnostic.

Working Example

Example Snippetgo
package main
import (  "compress/flate"  "fmt")
func must(e error) {  if e != nil {    panic(e)  }}
func main() { e := flate.CorruptInputError(4); fmt.Println(e.Error() != "") }
Go Reference