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

Add slices.NonNil #14

Merged
merged 1 commit into from
May 18, 2024
Merged

Add slices.NonNil #14

merged 1 commit into from
May 18, 2024

Conversation

bobg
Copy link
Owner

@bobg bobg commented May 18, 2024

Add slices.NonNil, for converting nil slices to non-nil empty slices.

Closes #10.

Copy link

Modver result

This report was generated by Modver,
a Go package and command that helps you obey semantic versioning rules in your Go module.

This PR requires (at least) an increase in your module's minor version number.

no object NonNil in old version of package github.com/bobg/go-generics/v3/slices
  Minor

@bobg bobg merged commit 83d5429 into master May 18, 2024
2 checks passed
@coveralls
Copy link

Pull Request Test Coverage Report for Build 9142835111

Details

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 88.186%

Totals Coverage Status
Change from base Build 7845733902: 0.2%
Covered Lines: 1045
Relevant Lines: 1185

💛 - Coveralls

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.

Slices: add an API like Map but do NOT return nil with 0-length slice
2 participants