file

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedMode = errors.New("unsupported mode")

Functions

This section is empty.

Types

type File

type File struct {
	FS   fs.FS
	Path string
}

func (*File) Attr

func (f *File) Attr(name string) (starlark.Value, error)

func (*File) AttrNames

func (f *File) AttrNames() []string

func (*File) Freeze

func (f *File) Freeze()

func (*File) Hash

func (f *File) Hash() (uint32, error)

func (*File) String

func (f *File) String() string

func (*File) Truth

func (f *File) Truth() starlark.Bool

func (*File) Type

func (f *File) Type() string

type Mode added in v0.52.0

type Mode uint8
const (
	ModeNone Mode = iota
	ModeReadText
	ModeReadBinary
)

func ParseMode added in v0.52.0

func ParseMode(mode string) (Mode, error)

Jump to

Keyboard shortcuts

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