{"repo":"hairyhenderson/go-fsimpl","free":true,"listed":false,"github":"https://github.com/hairyhenderson/go-fsimpl","clone":"git clone https://github.com/hairyhenderson/go-fsimpl.git","description":"Go io/fs.FS filesystem implementations for various URL schemes","language":"Go","stars":327,"topics":["go","golang","filesystem","git","vault","consul","s3","gcs","url","iofs"],"license":"MIT","category":"analytics","readme_excerpt":"hairyhenderson/go-fsimpl [![GoDoc][godoc-image]][godocs] [![Build][gh-actions-image]][gh-actions-url] This module contains a collection of Go filesystem implementations that can be discovered dynamically by URL scheme. These filesystems implement the fs.FS interface introduced in Go 1.16. This means that currently all implementations are read-only, however this may change in the future (see golang/go#45757 for progress). Most implementations implement the fs.ReadDirFS interface, though the httpfs filesystem does not. Some extensions are available to help add specific functionality to certain filesystems: - WithContextFS - injects a context into a filesystem, for propagating cancellation in filesystems that support it. - WithHeaderFS - sets the http.Header for all HTTP requests used by the filesystem. This can be useful for authentication, or for requesting specific content types. - WithHTTPClientFS - sets the http.Client for all HTTP requests to be made with. Many of the filesystem packages also have their own extensions. This module also provides ContentType , an extension to the fs.FileInfo type to help identify an appropriate MIME content type for a given file. For filesystems that support it, the HTTP Content-Type header is used for this. Otherwise, the type is guessed from the file extension. History & Project Status This module is in active development , and the API is still subject to breaking changes. The filesystem packages should operate correctly, based on the test","default_branch":null,"files":null,"tree":[],"storefront":"/r/hairyhenderson","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hairyhenderson/go-fsimpl/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}