Skip to content

pkg/com: Must helper for config #10

@progrium

Description

@progrium

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions