mirror of
https://github.com/containers/podman.git
synced 2025-05-21 00:56:36 +08:00
vendor: update containers/{buildah,common,image,storage}
The change in healthcheck_run_test.go, depends on the containers/image change: commit b6afa8ca7b324aca8fd5a7b5b206fc05c0c04874 Author: Mikhail Sokolov <msokolov@evolution.com> Date: Fri Mar 15 13:37:44 2024 +0200 Add support for Docker HealthConfig.StartInterval (v25.0.0+) Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
14
vendor/github.com/go-openapi/swag/string_bytes.go
generated
vendored
14
vendor/github.com/go-openapi/swag/string_bytes.go
generated
vendored
@ -2,21 +2,7 @@ package swag
|
||||
|
||||
import "unsafe"
|
||||
|
||||
type internalString struct {
|
||||
Data unsafe.Pointer
|
||||
Len int
|
||||
}
|
||||
|
||||
// hackStringBytes returns the (unsafe) underlying bytes slice of a string.
|
||||
func hackStringBytes(str string) []byte {
|
||||
p := (*internalString)(unsafe.Pointer(&str)).Data
|
||||
return unsafe.Slice((*byte)(p), len(str))
|
||||
}
|
||||
|
||||
/*
|
||||
* go1.20 version (for when go mod moves to a go1.20 requirement):
|
||||
|
||||
func hackStringBytes(str string) []byte {
|
||||
return unsafe.Slice(unsafe.StringData(str), len(str))
|
||||
}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user