package stdlib
import (
"container/heap"
"reflect"
)
func init() {
Symbols ["container/heap/heap" ] = map [string ]reflect .Value {
"Fix" : reflect .ValueOf (heap .Fix ),
"Init" : reflect .ValueOf (heap .Init ),
"Pop" : reflect .ValueOf (heap .Pop ),
"Push" : reflect .ValueOf (heap .Push ),
"Remove" : reflect .ValueOf (heap .Remove ),
"Interface" : reflect .ValueOf ((*heap .Interface )(nil )),
"_Interface" : reflect .ValueOf ((*_container_heap_Interface )(nil )),
}
}
type _container_heap_Interface struct {
IValue interface {}
WLen func () int
WLess func (i int , j int ) bool
WPop func () any
WPush func (x any )
WSwap func (i int , j int )
}
func (W _container_heap_Interface ) Len () int {
return W .WLen ()
}
func (W _container_heap_Interface ) Less (i int , j int ) bool {
return W .WLess (i , j )
}
func (W _container_heap_Interface ) Pop () any {
return W .WPop ()
}
func (W _container_heap_Interface ) Push (x any ) {
W .WPush (x )
}
func (W _container_heap_Interface ) Swap (i int , j int ) {
W .WSwap (i , j )
}
The pages are generated with Golds v0.8.4 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .