Top 4.8% dependent repos on proxy.golang.org
proxy.golang.org : github.com/thediveo/gitrepofs
package gitrepofs provides a fs.FS interface onto a remote git repository at a specific tag. The main envisioned use case is for “go generate”-based updates from upstream repositories to fetch the latest C definitions without the need to integrate upstream C libraries. The number of interfaces and their relationships in fs.FS look like a (small) zoo and it is easy to get lost in what returns what, or extends that, or whatever. So here's our own little fs.FS Zoo map. For whatever reason, there's no cafeteria and no rest rooms (unless counting in runtime.GC). fs.FS provides access to a hierarchical file system. Additional optional interfaces (discussed next) then offer more functionality. fs.File provides access to a single file or directory; for directories, the additional interface fs.ReadDirFiles should also be implemented (Golang soundbite). We implement regular and executable file access in the File type and directory access in the Directory type. fs.FileInfo describes a file or directory and is returned by fs.File.Stat, but can also be returned from fs.DirEntry.Info. We implement the fs.FileInfo interface in our aptly named FileInfo type. Next on to fs.ReadDirFile: it provides fs.File operations and on top of it reading a directory. We implemented this interface in the Directory type. fs.DirEntry is an entry from a directory. These entries also have fs.FileInfo objects attached to them. We implement the interface in the DirEntry type.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/thediveo/gitrepofs
License: Apache-2.0
Latest release: 4 months ago
First release: over 2 years ago
Namespace: github.com/thediveo
Dependent packages: 1
Dependent repositories: 1
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 29 days ago