Standard library / compress/flate
compress/flate.ReadError.Error()
Return a diagnostic message for ReadError. Do not parse diagnostic text as a stable wire protocol. This deprecated type is instantiated synthetically. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
func (e *ReadError) Error() stringReturn Value
string
Human-readable diagnostic.
Working Example
Example Snippetgo
package main
import ( "compress/flate" "fmt" "io")
func must(e error) { if e != nil { panic(e) }}
func main() { e := &flate.ReadError{Offset: 4, Err: io.ErrUnexpectedEOF}; fmt.Println(e.Error() != "") }