filesbuf

package
v0.0.0-...-8a88764 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct{}

Agent instance allows to get Reader and WriteCloser

func (Agent) GetReadCloser

func (a Agent) GetReadCloser(path string) (io.ReadCloser, error)

GetReadCloser returns reader if file of given path exists

func (Agent) GetWriteCloser

func (a Agent) GetWriteCloser(path string) (io.WriteCloser, error)

GetWriteCloser returns write close if folder in which file has to be created exists and there is no other file of given name

Jump to

Keyboard shortcuts

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