fetch

package
v0.0.0-...-02c76fb Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(ctx context.Context, loc string) ([]byte, error)

Any fetches a path based on the scheme of the location

func File

func File(loc string) ([]byte, error)

File gets the content of a file

func HTTP

func HTTP(ctx context.Context, loc string) ([]byte, error)

HTTP fetches content over HTTP

func ResolveInContext

func ResolveInContext(loc, ctx string) (string, error)

ResolveInContext resolves a path relative to another

Types

This section is empty.

Jump to

Keyboard shortcuts

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