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)
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
Click to show internal directories.
Click to hide internal directories.