Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 9 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadDir

func ReadDir(ctx context.Context, root string, req ReadDirRequest) ([]*fstypes.Stat, error)

func ReadFile

func ReadFile(_ context.Context, root string, req ReadRequest, maxSize int) (_ []byte, retErr error)

func StatFile

func StatFile(ctx context.Context, root string, path string) (*fstypes.Stat, error)

Types

type FileRange

type FileRange struct {
	Offset int
	Length int
}

type ReadDirRequest

type ReadDirRequest struct {
	Path           string
	IncludePattern string
}

type ReadRequest

type ReadRequest struct {
	Filename string
	Range    *FileRange
}

Jump to

Keyboard shortcuts

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