DEV Community

Volker Schukai for schukai GmbH

Posted on

YAConfigLib - Dynamic Configurations in Go: Introducing Postprocessing Hooks

Hey Gophers! 🚀

Do you struggle with configuration files in different formats like JSON, YAML or TOML in your Go applications? If yes, then you appreciate the value of a robust configuration management library.

Today we released a brand new feature in our configuration library.

We present: Postprocessing Hooks! 🌟

Imagine, you can not only read configurations in different formats, but now you can also define hooks that are triggered directly when a configuration change is made. Previously, you could also solve this via ChangeHooks, but these ran in their own Go routine.

The decisive advantage for tasks such as

  • Changing paths based on new configurations.
  • Building new structures after loading configurations.
  • Integrating real-time responses to dynamic configurations into your application.

Why should you try the new feature of our configuration library?

  • Flexibility: read and manage configurations in YAML, TOML and JSON.
  • Reactivity: Real-time actions based on dynamic configuration changes.
  • Powerful: Efficient handling without the overhead of additional routines.

We are convinced that after your first experience with Postprocessing Hooks, you will wonder how you ever got along without it!

Try it out, share your feedback and let's improve dynamic configurations in Go together!

Stay tuned for more exciting updates. Have a great time programming! 🎉

https://gitlab.schukai.com/oss/libraries/go/application/configuration

Top comments (0)