data

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(uri string, limit int64) ([]byte, error)

Fetch gets the bytes at the specified URI. The URI can be remote (http) or local. if 'limit' is greater then zero, fetch stops with EOF after 'limit' bytes.

func FetchFromFile

func FetchFromFile(filename string, limit int64) ([]byte, error)

FetchFromFile fetch data (with limit) from an file. if 'limit' is greater then zero, fetch stops with EOF after 'limit' bytes.

func FetchFromURI

func FetchFromURI(uri string, limit int64) ([]byte, error)

FetchFromURI fetch data (with limit) from an HTTP URL. if 'limit' is greater then zero, fetch stops with EOF after 'limit' bytes.

func Wrap

func Wrap(text string, colBreak int) string

Wrap hard wrap text at the specified colBreak column.

Types

This section is empty.

Jump to

Keyboard shortcuts

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