# Export Config object to on InitModule method

**URL:** <https://forum.heroiclabs.com/t/export-config-object-to-on-initmodule-method/2449>\
**Category:** Runtime Framework\
**Created:** [March 10, 2022, 3:58pm UTC](https://forum.heroiclabs.com/t/export-config-object-to-on-initmodule-method/2449 "2022-03-10T15:58:42Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mharis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mharis/32/969_2.png) [@mharis](https://forum.heroiclabs.com/u/mharis)\
**Post date:** [March 30, 2022, 2:27pm UTC](https://forum.heroiclabs.com/t/export-config-object-to-on-initmodule-method/2449/6 "2022-03-30T14:27:23Z")

</div>

Hi, that’s right, anything you’ve passed in to the configuration file under `runtime.env` can be retrieved with that key from the context as a `map[string]string`. You can find more detailed walk-through in this forum thread: [Settings and stored state for a Go plugin](https://forum.heroiclabs.com/t/settings-and-stored-state-for-a-go-plugin/1867)

---

_[View the full topic](https://forum.heroiclabs.com/t/export-config-object-to-on-initmodule-method/2449)._
