files

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenLocalFile

func OpenLocalFile(ctx context.Context, path string, opts ...OpenFileOption) (io.ReadCloser, error)

func Tail

func Tail(ctx context.Context, path string) (io.ReadCloser, error)

Types

type OpenFileOption

type OpenFileOption func(*openFileOptions)

func WithPreview

func WithPreview() OpenFileOption

WithPreview means we're opening to preview the file, but we'll still need that portion later, when opening it again.

func WithTail

func WithTail(tail bool) OpenFileOption

Jump to

Keyboard shortcuts

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