Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 9.5% dependent packages on proxy.golang.org
Top 4.8% dependent repos on proxy.golang.org

proxy.golang.org : github.com/aarol/reload

Package reload exposes the middleware Handle(), which can be used to trigger a reload in the browser whenever a file is changed. Reload doesn't require any external tools and is can be integrated into any project that uses the standard net/http interface. Typically, integrating this package looks like this: 1. Create a new Reloader and insert the middleware to your handler chain: 2. Run your application, make changes to files in the specified directories, and see the updated page instantly! The package also exposes `ServeWS`, `InjectScript`, `Wait` and `WatchDirectories`, which can be used to embed the script in the templates directly. See the full example at https://github.com/aarol/reload/blob/main/example/main.go

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/aarol/reload
Keywords: dx, go, websocket
License: MIT
Latest release: 3 months ago
First release: over 1 year ago
Namespace: github.com/aarol
Dependent packages: 1
Dependent repositories: 1
Stars: 20 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 11 days ago

    Loading...
    Readme
    Loading...