utils

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package utils provide common used functionality to work with files, readers and so on.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseInts added in v1.8.0

func ParseInts(in io.Reader, sep string) ([]int, error)

ParseInts parses io.Reader into []int.

func ReaderFromFile

func ReaderFromFile(tb testing.TB, fpath string) io.Reader

ReaderFromFile reads file from fpath and returns content as io.Reader. File descriptor will be closed on tests teardown.

Types

This section is empty.

Jump to

Keyboard shortcuts

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