You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm happy to implement this if it sounds good to you.
Why
Shared global state makes it hard to understand how different components fit together. Eliminating the global Conf struct makes it easier to unit test code because tests can pass values directly to the functions they exercise rather than setting the Conf global in advance to influence behavior.
(Optional) How
See code example above.
The text was updated successfully, but these errors were encountered:
What
I'd like to continue #46 by removing the accessors from
conf
and read the configuration from a single place in themain
package, like this:I'm happy to implement this if it sounds good to you.
Why
Shared global state makes it hard to understand how different components fit together. Eliminating the global
Conf
struct makes it easier to unit test code because tests can pass values directly to the functions they exercise rather than setting theConf
global in advance to influence behavior.(Optional) How
See code example above.
The text was updated successfully, but these errors were encountered: