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

io

package
v1.30.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS struct {
	Ctx  context.Context
	Svc  afs.Service
	Root string
}

FS adapts a Service rooted at Root URI into an io/fs filesystem. Root should be a fully-qualified URI such as s3://bucket/path or gs://... .

func NewFS

func NewFS(ctx context.Context, svc afs.Service, root string) *FS

NewFS constructs a new adapter filesystem.

func (*FS) Open

func (a *FS) Open(name string) (fs.File, error)

Open implements fs.FS. It supports opening both files and directories.

Jump to

Keyboard shortcuts

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