gitfs
Read a remote git repository as io/fs.FS.
Example
func main() {
// init file system
fsys, _ := gitfs.New("https://github.com/boltdb/bolt")
// read root directory
data, _ := fs.ReadFile(fsys, "README.md")
// print files
fmt.Println(string(data)[:4])
// Output: Bolt
}On this page
Languages
Go100.0%
MIT License
Created February 1, 2021
Updated February 28, 2026