You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For strings you need to keep your function for the rest you could make a generic method with a type flag T that creates an unsafe slice and than copy the contents to a slice of type T
We have a few methods for reading arrays from C. They are all identical except for the return type.
Can we use generics to combine them?
nixos-facter/pkg/hwinfo/utils.go
Lines 10 to 56 in 7f1b1c4
The text was updated successfully, but these errors were encountered: