statigz
Statigz serves pre-compressed embedded files with http in Go (by vearutop)
swaggerui
Embedded, self-hosted swagger-ui for go servers (by flowchartsman)
statigz | swaggerui | |
---|---|---|
5 | 3 | |
64 | 70 | |
- | - | |
3.3 | 0.0 | |
10 months ago | 17 days ago | |
Go | Go | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
statigz
Posts with mentions or reviews of statigz.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-14.
- Labstack/echo: High performance, minimalist Go web framework
- Showcase: statigz serves pre-compressed embedded files with http in Go
-
Working with Embed in Go 1.16 Version
I've made an http file server to serve pre-compressed or decompressed files out of embedded fs based on Accept-Encoding header: https://github.com/vearutop/statigz.
-
Serving compressed static assets with HTTP in Go 1.16
I thought this approach can work well for Go embedded files too and implemented github.com/vearutop/statigz: a file server that can serve compressed version of an asset if it is available in embedded file system.
-
Embed Files In Go Using New Embed Package In Go
I'm excited with this new feature, though I felt a bit of friction in the case of serving compressed assets with http. I like how such problem in solved in http://nginx.org/en/docs/http/ngx_http_gzip_static_module.html, so I've implemented somewhat similar approach for Go 1.16 embedded files: https://github.com/vearutop/statigz, hope it will be helpful.
swaggerui
Posts with mentions or reviews of swaggerui.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-11-03.
-
how to update swagger logo (API documentation)
I have been playing with this functionality in my library, which currently just turns the header off. Haven't used swaggo/swag before, but it looks like they bundle the UI file assets into a separate package that embeds them using another tool and then they generate a handler for you.
-
What's the best way to serve swagger UI?
Have a look at https://github.com/flowchartsman/swaggerui or one of the forks.
-
Working with Embed in Go 1.16 Version
I would probably put my embed and generate directives in the same file for convenience, then I would write a package main file that does your minification work(if you can). Take a look at what I did here. It’s actually a full binary to download the code, and go generate will call it. In your case, this would be your minifier. You would need to make sure you call “go generate” before “go build” if you’ve made any changes to code that might need minified. Mage might be a good option to help you with this, since, unlike the embed directive, generate directives must be manually called.
What are some alternatives?
When comparing statigz and swaggerui you can also consider the following projects:
go - The Go programming language
embed-encrypt
files
template - 🧬 Template engine middleware for Fiber
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production
letsblockit - Remove low-quality content and useless nags, focus on what matters. A community-maintained uBlock Origin filter set.
fileb0x - a better customizable tool to embed files in go; also update embedded files remotely without restarting the server
Echo - High performance, minimalist Go web framework
swag - Automatically generate RESTful API documentation with Swagger 2.0 for Go.
brotli - Brotli compression format
chi - lightweight, idiomatic and composable router for building Go HTTP services