github.com/traefik/yaegi@v0.15.1/stdlib/go1_20_container_heap.go (about) 1 // Code generated by 'yaegi extract container/heap'. DO NOT EDIT. 2 3 //go:build go1.20 4 // +build go1.20 5 6 package stdlib 7 8 import ( 9 "container/heap" 10 "reflect" 11 ) 12 13 func init() { 14 Symbols["container/heap/heap"] = map[string]reflect.Value{ 15 // function, constant and variable definitions 16 "Fix": reflect.ValueOf(heap.Fix), 17 "Init": reflect.ValueOf(heap.Init), 18 "Pop": reflect.ValueOf(heap.Pop), 19 "Push": reflect.ValueOf(heap.Push), 20 "Remove": reflect.ValueOf(heap.Remove), 21 22 // type definitions 23 "Interface": reflect.ValueOf((*heap.Interface)(nil)), 24 25 // interface wrapper definitions 26 "_Interface": reflect.ValueOf((*_container_heap_Interface)(nil)), 27 } 28 } 29 30 // _container_heap_Interface is an interface wrapper for Interface type 31 type _container_heap_Interface struct { 32 IValue interface{} 33 WLen func() int 34 WLess func(i int, j int) bool 35 WPop func() any 36 WPush func(x any) 37 WSwap func(i int, j int) 38 } 39 40 func (W _container_heap_Interface) Len() int { 41 return W.WLen() 42 } 43 func (W _container_heap_Interface) Less(i int, j int) bool { 44 return W.WLess(i, j) 45 } 46 func (W _container_heap_Interface) Pop() any { 47 return W.WPop() 48 } 49 func (W _container_heap_Interface) Push(x any) { 50 W.WPush(x) 51 } 52 func (W _container_heap_Interface) Swap(i int, j int) { 53 W.WSwap(i, j) 54 }