mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-23 22:26:27 +00:00
Update dependencies
Signed-off-by: Ciprian Hacman <chacman@microsoft.com>
This commit is contained in:
committed by
Ciprian Hacman
parent
be0d387ec1
commit
0f1ee66855
+8
@@ -0,0 +1,8 @@
|
||||
package swag
|
||||
|
||||
import "unsafe"
|
||||
|
||||
// hackStringBytes returns the (unsafe) underlying bytes slice of a string.
|
||||
func hackStringBytes(str string) []byte {
|
||||
return unsafe.Slice(unsafe.StringData(str), len(str))
|
||||
}
|
||||
Reference in New Issue
Block a user