fetch

package
Version: v0.0.0-...-602244f Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MaxMemory = 1024

MaxMemory to be read at once from an http endpoint

Variables

This section is empty.

Functions

func FromFile

func FromFile(src string) (string, error)

FromFile load a file as text

func FromURL

func FromURL(url string) (string, error)

FromURL load the content of an url

func GetContent

func GetContent(src string) (string, error)

GetContent load content from an URL or file

func ResolvePath

func ResolvePath(path string) (string, error)

ResolvePath transform a path to an absolute path

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL