fileio

package
v0.0.0-...-c1f11ce Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendContent

func AppendContent(content string, fileName string)

AppendContent creates a file and appends the content to the file. (ending newline must be supplied with content string)

func FileCopy

func FileCopy(sourceFile, destFile string)

FileCopy copies a FILE from source to dest.

func FileExist

func FileExist(fileName string) (bool, error)

FileExist checks if a file exists and returns a bool and any error that isn't os.ErrNotExist.

func ReadFile

func ReadFile(fileName string) string

ReadFile reads a file and returns all the content as a string.

func ReadLines

func ReadLines(fileName string) []string

ReadLines reads the file and returns a stringlist with each line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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