util

package
v0.0.0-...-304b888 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: BSD-3-Clause Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFirstDate

func GetFirstDate(fname string) (t time.Time, err error)

func GetScanner

func GetScanner(file *os.File) (scanner *bufio.Scanner)

returns an underlying bufio.Scanner if file is bz2 or plan and sets the Split function to SplitMrt from protoparse.

func GetTimestampFromMRT

func GetTimestampFromMRT(data []byte) (t time.Time, err error)

func NBContextClosed

func NBContextClosed(ctx context.Context) bool

Non-blocking context closed function Just a simple function for some repeated code Returns true if the context has been closed, such as with a cancel func

Types

This section is empty.

Jump to

Keyboard shortcuts

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