util

package
v0.0.0-...-ee37d40 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkOpen

func BulkOpen(infiles []string) ([]*os.File, error)

BulkOpen takes a slice of strings of filenames, and returns a slice of file handlers to the caller.

func CountPerms

func CountPerms(infiles []*os.File) (int, error)

CountPerms takes a list of files, and calculates the number of permutations of each of its lines.

func GenerateRequest

func GenerateRequest(method string, url string, body string, headerFlags []string, filename string) error

GenerateRequest takes a method, url, body, a list of headers, and a filepath, all strings. It then generates a request for the given url and method, with the given body, and writes it out to the given filepath.

func ReadInputs

func ReadInputs(inFiles []*os.File, offsets []int64) ([]string, bool, error)

ReadInputs takes an array of file pointers and an array of int64, whic it uses as offsets into those files. It then reads each file pointer, incrementing read heads only as needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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