iohelper

package
v0.0.86 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 4 Imported by: 9

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

CreateDirectory creates and ensure a directory in the specified path

func GenerateCRC32Checksum added in v0.0.83

func GenerateCRC32Checksum(path string) (uint32, error)

GenerateCRC32Checksum generates CRC32 checksum of the file in the specified path

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 ReadLinesFromFile added in v0.0.86

func ReadLinesFromFile(path string) ([]string, error)

ReadLinesFromFile returns content of the file in the specified path as lines

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