file

package
v0.0.0-...-f1ab898 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package file is used for reading and writting to files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(filename string, lineOut chan<- string)

Read will read filename line by line and each line be returned to channel.

func StreamRead

func StreamRead(reader multipart.File, lineOut chan<- string)

StreamRead will read from io.Reader line by line and each line be returned to channel.

func UnGZip

func UnGZip(filename string) error

UnGZip will decompress the file from filename.gz to filename

func Write

func Write(filename string, line string)

Write will append or create filename and write the slice of strings seperated by a new line.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL