Home

Awesome

go-up_examples

Example usage of go-up

Before Go-Up, I used to use Viper. Viper is great and I surely recommend it; nevertheless, all of its features are not for free. In fact, it adds tons of dependencies that make the application much heavier.

So, if like me you aspire to code which is as light as possible and you can live with a smaller set of features (BWT go-up has some unique aces in the hole like recursive placeholders resolution!), then you should probably take into account a lighter alternative like go-up.

To show the impact that a single library can have on your application, I created three small examples, these are:

When built, they produce surprising results:

LibraryProduced Binary Size
Go-Up2.185 KB
Plain Go2.000 KB
Viper11.782 KB

<ins>The Viper based binary file is nearly 6 times bigger than the other implementations!</ins>

(Build performed with go1.13 linux/amd64 on Ubuntu 18.04)