reader

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: BSD-3-Clause Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const READER_SCHEME string = "wof-cli"
View Source
const STDIN string = "-"

Variables

This section is empty.

Functions

func BytesFromURI added in v0.0.16

func BytesFromURI(ctx context.Context, uri string) ([]byte, error)

func NewReader added in v0.8.0

func NewReader(ctx context.Context, uri string) (wof_reader.Reader, error)

func ReadCloserFromURI

func ReadCloserFromURI(ctx context.Context, uri string) (io.ReadCloser, bool, error)

Types

type Reader added in v0.8.0

type Reader struct {
	wof_reader.Reader
}

Reader implements the `whosonfirst/go-reader/v2.Reader` interface.

func (*Reader) Read added in v0.8.0

func (r *Reader) Read(ctx context.Context, path string) (io.ReadSeekCloser, error)

Read will open and return an empty `io.ReadSeekCloser` for any value of 'path'.

func (*Reader) ReaderURI added in v0.8.0

func (r *Reader) ReaderURI(ctx context.Context, path string) string

ReaderURI returns the value of 'path'.

Jump to

Keyboard shortcuts

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