xio

package
v0.0.0-...-c587185 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFile

func GetFile(path string, create bool) (f *os.File, err error)

GetFile opens or creates the file at path

func ReadFirstRow

func ReadFirstRow(f *os.File) string

ReadFirstRow reads contents till first break newline is encountered

func ReplaceContent

func ReplaceContent(f *os.File, content string) (err error)

ReplaceContent truncates the file and writes content at offset 0

Types

This section is empty.

Jump to

Keyboard shortcuts

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