utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFilesInDir

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

func IsInDir

func IsInDir(path, fName string) (bool, error)

Types

type Editor

type Editor struct {
	Path string

	FileIOReadFile  *os.File
	FileIOWriteFile *os.File

	ExistingFile *bufio.Scanner
	TmpFile      *bufio.Writer
}

func NewEditor

func NewEditor(path string) (*Editor, error)

func (*Editor) CommitFile

func (e *Editor) CommitFile() error

func (*Editor) EditLine

func (e *Editor) EditLine(editLine func(int, string) string)

func (*Editor) ReadLine

func (e *Editor) ReadLine(readLine func(int, string))

Jump to

Keyboard shortcuts

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