reader

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

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