Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap BeastConfig and Config struct initialization to a New function #224

Open
fristonio opened this issue Oct 19, 2019 · 0 comments
Open

Comments

@fristonio
Copy link
Member

Currently, the structs objects are initialized manually by providing values to the struct fields directly. This leaves us with a situation where we have to rely on the Validate method for default values to be populated. Wrap all such places with a function in config like NewBeastConfig and NewChallengeConfig and decode the values from the toml so that default values can be sensibly initialized. View the issue to look at how we can deal with this
BurntSushi/toml#47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant