io

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package io contains helper functions for io operatoins on the command line bw tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStatementsFromFile

func GetStatementsFromFile(path string) ([]string, error)

GetStatementsFromFile returns the statements found in the provided file.

func ProcessLines

func ProcessLines(path string, fp func(line string) error) (int, error)

ProcessLines from a file using the provied call back. The error of the callback will be passed through. Returns the number of processed errors before the error. Returns the line where the error occurred or the total numbers of lines processed.

func ReadLines

func ReadLines(path string) ([]string, error)

ReadLines from a file into a string array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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