smokescreen icon indicating copy to clipboard operation
smokescreen copied to clipboard

Use a smokescreen struct over a config pointer to share global state

Open cds2-stripe opened this issue 5 years ago • 0 comments

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

cds2-stripe avatar Jan 22 '20 21:01 cds2-stripe