got_it 1.1.0 got_it: ^1.1.0 copied to clipboard
Slightly more advanced service locator in the style of get-it
got_it #
get_it is so simple, this was made in 15 minutes from nothing but get_it's readme.
Why? #
Partially because experiments, partially because boredom, partially because practice.
Compared to get_it, you get:
get_it (the good one) | got_it (this one) | |
---|---|---|
Support | X | |
Competent dev team | X | |
Comments | X | X |
It's just a fancy map | X | X |
Supports being an instance | X | X |
Supports being a singleton | / You need to implement that |
X |
Supports singletons | X | X |
Supports lazy singletons | X | X |
Supports builders | X | X |
Anti-Replacement granularity | Coarse | Fine (Per Type) |
Error handling | Exception | Custom Error |
Length w/o comments | 67 lines | 63 lines |