tools: golang.org/x/tools/godoc/vfs/gatefs Index | Files

package gatefs

import "golang.org/x/tools/godoc/vfs/gatefs"

Package gatefs provides an implementation of the FileSystem interface that wraps another FileSystem and limits its concurrency.

Index

Package Files

gatefs.go

func New

func New(fs vfs.FileSystem, gateCh chan bool) vfs.FileSystem

New returns a new FileSystem that delegates to fs. If gateCh is non-nil and buffered, it's used as a gate to limit concurrency on calls to fs.

Package gatefs imports 3 packages (graph) and is imported by 1 packages. Updated 6 days ago. Refresh now. Tools for package owners.