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

btf, kernels: use unix.ByteSliceToString to simplify []byte -> string conversion #157

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

tklauser
Copy link
Member

Use ByteSliceToString from the golang.org/x/sys/unix package to simplify
converting null-terminated []byte slices to Go strings.

@tklauser tklauser requested a review from a team as a code owner June 13, 2022 10:36
@tklauser tklauser requested a review from willfindlay June 13, 2022 10:36
Use ByteSliceToString from the golang.org/x/sys/unix package to simplify
converting null-terminated []byte slices to Go strings.

Signed-off-by: Tobias Klauser <[email protected]>
@tklauser tklauser force-pushed the unix-byteslice-to-string branch from 49170c4 to 43dc112 Compare June 13, 2022 11:55
Copy link
Contributor

@kkourt kkourt left a comment

Choose a reason for hiding this comment

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

Thanks Tobias!

@jrfastab
Copy link
Contributor

Nice thanks.

@jrfastab jrfastab merged commit db9ddc6 into cilium:main Jun 14, 2022
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.

4 participants