Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/altipla-consulting/vitemanifest
Read the Vite manifest from Go.
https://github.com/altipla-consulting/vitemanifest
go vitejs
Last synced: about 1 month ago
JSON representation
Read the Vite manifest from Go.
- Host: GitHub
- URL: https://github.com/altipla-consulting/vitemanifest
- Owner: altipla-consulting
- License: mit
- Created: 2022-09-15T07:57:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-04T14:31:32.000Z (about 1 year ago)
- Last Synced: 2024-11-15T03:14:38.553Z (about 2 months ago)
- Topics: go, vitejs
- Language: Go
- Homepage: https://pkg.go.dev/github.com/altipla-consulting/vitemanifest
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vitemanifest
[![Go Reference](https://pkg.go.dev/badge/github.com/altipla-consulting/vitemanifest.svg)](https://pkg.go.dev/github.com/altipla-consulting/vitemanifest)
Read the Vite manifest from Go.
## Install
```shell
go get github.com/altipla-consulting/vitemanifest
```## Usage
Read the manifest from its standard location when starting up the application:
```go
var manifest vitemanifest.Filefunc init() {
manifest, err = vitemanifest.Read()
if err != nil {
log.Fatal(err)
}
}
```You can also specify a custom location for the manifest file:
```go
manifest, err := vitemanifest.ReadPath("mycustom/file")
if err != nil {
log.Fatal(err)
}
```## Contributing
You can make pull requests or create issues in GitHub. Any code you send should be formatted using `make gofmt`.
## License
[MIT License](LICENSE)