smokescreen
smokescreen copied to clipboard
Use a smokescreen struct over a config pointer to share global state
Currently we pass a pointer to a config object across functions to share global state. It would be more idiomatic to:
- Use functional options to generate a config object at runtime
- Use this config to build a Smokescreen struct
- Have functions which require access to the global smokescreen state implemented as pointer receivers