io

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package io contains helper functions for io operations 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 provided 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