file

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const BLOCK_SIZE = 4096

Variables

This section is empty.

Functions

func Varify

func Varify(public bool, fname string) string

Types

type Blob

type Blob struct {
	Body        []byte
	ContentType string
	Encoding    string
}

func (*Blob) Load

func (o *Blob) Load(fname string, e Encoder) (err error)

func (*Blob) NewEncodedReader

func (o *Blob) NewEncodedReader() io.Reader

func (*Blob) NewReader

func (o *Blob) NewReader() (r io.Reader, err error)

func (*Blob) NewReader2

func (o *Blob) NewReader2(encoding string) (r io.Reader, err error)

func (*Blob) RenderBytes

func (o *Blob) RenderBytes(fout *os.File, indent string, columns uint) error

type Encoder

type Encoder interface {
	Encoding() string
	Bytes() []byte

	Write([]byte) (int, error)

	Reset() error
	Close() error
}

type File

type File struct {
	Blob

	Name string
}

Jump to

Keyboard shortcuts

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