iohelper

package
v0.0.82 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectory added in v0.0.82

func CreateDirectory(path string) error

func IsDirectoryExist added in v0.0.12

func IsDirectoryExist(path string) bool

IsDirectoryExist return true if a file exist in the specified path

func IsFileExist

func IsFileExist(path string) bool

IsFileExist return true if a file exist in the specified path

func ReadBytesFromFile added in v0.0.70

func ReadBytesFromFile(path string) ([]byte, error)

ReadBytesFromFile returns content of the file in the specified path as bytes

func ReadFirstLineBytesFromFile added in v0.0.70

func ReadFirstLineBytesFromFile(path string) ([]byte, error)

func ReadFirstLineFromFile added in v0.0.71

func ReadFirstLineFromFile(path string) (string, error)

func ReadStringFromFile

func ReadStringFromFile(path string) (string, error)

ReadStringFromFile returns content of the file in the specified path as string

Types

This section is empty.

Jump to

Keyboard shortcuts

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