loader

package
v0.0.0-...-f066c3e Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoOptions = Options{}

NoOptions are the default Options.

Functions

func Load

func Load(uri string, opts Options) (*sheet.Sheet, error)

Load loads a sheet from uri. The way how the sheet is loaded is determined by the file extension. If uri should have a http(s) scheme, the sheet is fetched from the remote location via a GET request. Otherwise, the file is loaded from the local file system.

Types

type Options

type Options struct {
	// Format is the file format to use. If it is set, the given Format will be
	// used instead of the format specified by the file's extension.
	Format string `json:"format,omitempty"`
}

Jump to

Keyboard shortcuts

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