Standard library / compress/flate
compress/flate.InternalError.Error()
Return a diagnostic message for InternalError. 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 InternalError) Error() stringReturn 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.InternalError("demo"); fmt.Println(e.Error() != "") }