You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: streaming_connection_error.go
    path of file: ./repos/octant/pkg/errors
    
    the code of the file until where you have to start completion: package errors

type StreamError struct {
	*GenericError
	Fatal bool
}

func NewStreamError(err error) *Stream
    
func IsFatalStreamError(err error) bool {
	switch sErr := err.(type) {
	case StreamError:
		return sErr.Fatal
	case *StreamError:
		return sErr.Fatal
	default:
		return false
	}
}