source

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package source reads data from a remote or local source.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAll

func ReadAll(src string) ([]byte, error)

ReadAll reads all data from src. Source may be a local path, or a url that must start with 'http://' or 'https://'.

Local files are read using os.ReadFile. Remote URLs are first fetched using http.Get and then passed to io.ReadAll.

Types

This section is empty.

Jump to

Keyboard shortcuts

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