From 8db41da676ac8368ef7c2549d56239a5ff5eedde Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Tue, 2 Jan 2024 18:56:31 +0100 Subject: Delete vendor directory --- .../github.com/modern-go/reflect2/go_above_118.go | 23 ---------------------- 1 file changed, 23 deletions(-) delete mode 100644 vendor/github.com/modern-go/reflect2/go_above_118.go (limited to 'vendor/github.com/modern-go/reflect2/go_above_118.go') diff --git a/vendor/github.com/modern-go/reflect2/go_above_118.go b/vendor/github.com/modern-go/reflect2/go_above_118.go deleted file mode 100644 index 2b4116f..0000000 --- a/vendor/github.com/modern-go/reflect2/go_above_118.go +++ /dev/null @@ -1,23 +0,0 @@ -//+build go1.18 - -package reflect2 - -import ( - "unsafe" -) - -// m escapes into the return value, but the caller of mapiterinit -// doesn't let the return value escape. -//go:noescape -//go:linkname mapiterinit reflect.mapiterinit -func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer, it *hiter) - -func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { - var it hiter - mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj), &it) - return &UnsafeMapIterator{ - hiter: &it, - pKeyRType: type2.pKeyRType, - pElemRType: type2.pElemRType, - } -} \ No newline at end of file -- cgit v1.2.3