files

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(opts ...ReaderOpt) *Reader

func (*Reader) ReadFile

func (r *Reader) ReadFile(uri string) ([]byte, error)

type ReaderOpt

type ReaderOpt func(*Reader)

func WithEmbedFS

func WithEmbedFS(embedFS embed.FS) ReaderOpt

func WithUserAgent

func WithUserAgent(userAgent string) ReaderOpt

Jump to

Keyboard shortcuts

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