persistence

package
v0.0.0-...-703572f Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartFileWorker

func StartFileWorker() (chan FileAction, chan FileResult)

StartFileWorker starts a goroutine listening on its input channel, creates files with given path and content and then passes the files or errors via its output channel

Types

type FileAction

type FileAction struct {
	Path    string
	Content []string
}

FileAction describes the data expected in the input channel

type FileResult

type FileResult struct {
	File  *os.File
	Lines int
	Error error
}

FileResult describes the data in the output channel

Jump to

Keyboard shortcuts

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