fileio

package
v0.0.0-...-1bb7c6f Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package fileio implements file I/O functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenFile

func OpenFile(ctx context.Context, filename string) (*os.File, error)

OpenFile opens a file and returns a pointer to it, along with an error value. If there is an error opening the file, the error value will be non-nil. Otherwise, the error value will be nil and the pointer to the file can be used to read or write to the file.

func WriteToFile

func WriteToFile(ctx context.Context, filePath string, data string) error

WriteToFile writes to a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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