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