got_it 1.1.1+2 got_it: ^1.1.1+2 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) | |
---|---|---|
You shouldn't use it | X | |
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 | X | X |
Supports singletons | X | X |
Supports lazy singletons | X | X |
Supports builders | X | X |
Supports named instances | Type or String | Type and String |
Anti-Replacement granularity | Coarse | Fine (Per Type) |
Error handling | Exception | Custom Error |
Length w/o comments | 100 lines | 97 lines |