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

pathpolicy: move to generics and unexport pathTrie #854

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Aug 12, 2024

pathpolicy: move PathTrie to a generic

With generics support in go it seems like a good idea to move the
PathTrie to a generic.


pathpolicy: unexport PathTrie as it's an implementation
detail

The pathpolicy packages is currently exporting the PathTrie
data structure. It seems this is not really used outside of the
package itself and more an implementation detail than a public
API. So just unexport it.

With generics support in go it seems like a good idea to move the
`PathTrie` to a generic.
The `pathpolicy` packages is currently exporting the `PathTrie`
data structure. It seems this is not really used outside of the
package itself and more an implementation detail than a public
API. So just unexport it.
Copy link
Member

@ondrejbudai ondrejbudai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane, thanks!

@ondrejbudai ondrejbudai added this pull request to the merge queue Aug 12, 2024
Merged via the queue into osbuild:main with commit 5414b17 Aug 12, 2024
16 of 18 checks passed
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.

2 participants