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 ¶
Functions ¶
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.
Source Files ¶
gatefs.go
- Version
- v0.30.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 5 hours ago –
Tools for package owners.