gliderlabs / gliderlabs/comlab

pkg/com: Must helper for config

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
16
Forks
4
PR merge metrics
No merged PRs in 30d

Description

We don't support a way to make Options required, this is up to the user. The pattern becomes check if value is the zero value for the type on app start and error. To encourage this, maybe providing a Must helper that checks for zero value for a given option and returns an error (panic seems a bit strong, but maybe its fine).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.