Skip to content

Add helper to detect empty configuration - #122

Open
PranavMotarwar wants to merge 1 commit into
Netflix:masterfrom
PranavMotarwar:add-config-zero-helper
Open

Add helper to detect empty configuration#122
PranavMotarwar wants to merge 1 commit into
Netflix:masterfrom
PranavMotarwar:add-config-zero-helper

Conversation

@PranavMotarwar

Copy link
Copy Markdown

This PR adds a clean and small helper function to detect whether a configuration struct is empty or unset, along with unit tests.

One important point to note: While running tests with recent Go versions, missing module metadata was detected, so go.mod and go.sum were updated accordingly.

@PranavMotarwar

Copy link
Copy Markdown
Author

The Travis failure appears unrelated to this change. The job fails while installing github.com/kisielk/errcheck@latest, which now requires Go ≥1.22, while Travis is running Go 1.20.14.

Happy to adjust this PR if you’d prefer pinning the tool version or updating CI, otherwise this change itself does not affect the build logic.

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

Successfully merging this pull request may close these issues.

1 participant