sources

package
v0.0.0-...-9510b4a Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: GPL-2.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 File

type File struct {
	// contains filtered or unexported fields
}

func NewFile

func NewFile(path string) (f *File, err error)

func (*File) Close

func (f *File) Close() (err error)

func (*File) Content

func (f *File) Content() (c string, err error)

func (*File) Path

func (f *File) Path() string

func (*File) Size

func (f *File) Size() int64

type Pipe

type Pipe struct {
	// contains filtered or unexported fields
}

func NewPipe

func NewPipe() (f *Pipe)

func (*Pipe) Close

func (f *Pipe) Close() (err error)

func (*Pipe) Content

func (f *Pipe) Content() (c string, err error)

func (*Pipe) Path

func (f *Pipe) Path() string

func (*Pipe) Size

func (f *Pipe) Size() (s int64)

type Source

type Source interface {
	Content() (string, error)
	Path() string
	Size() int64
	Close() error
}

Jump to

Keyboard shortcuts

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