func NewFile(path string) Source {
	file, err := os.Create(path)
	if err != nil {
		panic(err)
	}
	return &File{file}
}
// NewFile creates a new file in path which is used as the source for a stream.
// If the file cannot be created it panics.
NewFile creates a new file in path which is used as the source for a stream.
If the file cannot be created it panics.
// NewFile creates a new file in path which is used as the source for a stream . // If the file cannot be created it panics .
func NewFile(path string) Source {
	file, err := os.Create(path)
	if err != nil {
		panic(err)
	}
	return &File{file}
}
func NewFile ( path string ) Source { file , err := os . Create ( path ) if err != nil { panic ( err ) } return & File { file } }
NewFile creates a new file in path which is used as the source for a stream.
NewFile creates a new file in path which is used as the source for a stream .