file

package
v0.39.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(filename string) bool

FileExists returns true if a file referenced by filename exists & accessible.

func ReadFile

func ReadFile(ctx context.Context, path string) ([]byte, error)

ReadFile reads a local or remote file and returns the read bytes, the location of the file is determined based on its prefix, http(s), (s)ftp prefixes are supported. no prefix means the file is local. `-` means stdin.

Types

This section is empty.

Jump to

Keyboard shortcuts

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