bimg
uuid
Our great sponsors
bimg | uuid | |
---|---|---|
5 | 18 | |
2,543 | 5,006 | |
- | 1.9% | |
4.2 | 7.1 | |
4 days ago | about 1 month ago | |
Go | Go | |
MIT License | BSD 3-clause "New" or "Revised" License |
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.
bimg
-
Go Image Converting
h2non/bimg can handle both if the underlying libvips is compiled with support for both formats.
-
What is the coolest Go open source projects you have seen?
bimg
-
WASM instead of C Dependencies?
I have web applications written in Rust and Go that need some basic image processing (reading JPEGs, PNGs, writing JPEGs, WebPs, AVIFs and resizing). This is something I always struggle with, because most libraries for image processing are written in C (libpng, libwebp, mozjpeg; or higher-level ones like vips). While there are usually dependencies in each language build on top of those C dependencies, like bimg for Go, I don’t like having C dependencies in a Rust, Go or even Node.js projects.
- Image manipulation with Go
-
Image Compression with Golang
For image processing, I will use the bimg library because in my opinion it has a very intuitive API and is easy to use, in addition to being very fast.
uuid
- UUIDs and the probability of being hit by a meteorite
-
Any way of blocking or preferring a package?
I use Google's UUID package a lot. But every time I refer to it in a new package, the language server picks up https://github.com/gofrs/uuid instead of https://github.com/google/uuid and then complains that the gofrs package isn't in go.mod. I assume because it's the first alphabetically (though this seems like a huge supply chain security loophole).
- What is the best practice for a Go Model id?
-
Authentication for HTMX app
Just store one single UUID as a token in a client's cookie (use https://github.com/google/uuid for ex), and associate that to a user ID (or anything else relevant in your case), and an expiry date for example
-
Which UUID package do you use? and why?
Depends on your needs I think, I generally just use github.com/google/uuid like /u/wowsux mentioned it supports v1 through v5 of the UUID spec.
-
Create a REST API with Go
And we are also going to use google/uuid to generate random uuids.
-
Testing UUID, how to access same UUID as created by the thing you are testing?
If you are using "github.com/google/uuid", try the following codes
-
Go Lang for .NET devs
You can see the same naming dilemma in many Go library implementations, i.e., where a package is used to organize functions related to a single a type (https://github.com/google/uuid) vs organizing code of related functionality (https://github.com/golang/go/tree/master/src/math).
-
goes - CQRS & Event-Sourcing Toolkit
Type inference is not perfect yet (especially for functional options). Also not being able to add type parameters to methods is a bit annoying (can be worked around using package-level functions) but besides that generics fit quite nicely into the library. If type inference gets better then I think I can even remove the hard dependency on github.com/google/uuid and let users use custom types for ids.
-
Web dev learning path advice
Learn how to create UUIDs: https://github.com/google/uuid
What are some alternatives?
govips - A lightning fast image processing and resizing library for Go
uuid - A UUID package originally forked from github.com/satori/go.uuid
imaginary - Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing
go.uuid - UUID package for Go
imaging - Imaging is a simple image processing package for Go
xid - xid is a globally unique id generator thought for the web
bild - Image processing algorithms in pure Go
swagger-ui - Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
goimagehash - Go Perceptual image hashing package
validator - :100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
fastimage - Finds the type and/or size of a remote image given its uri, by fetching as little as needed.
jwt - ⚠️ Deprecated repository, available within Fiber Contrib.