Files
moxa/stdlib/sort.go
Marc Vertes 25adc35a3c Change representation of stdlib from interface{} to reflect.Value
This fixes problems due to storing binary symbols as interfaces{}
instead of concrete type, which confuses lookup functions to retrieve
methods etc. in reflect.
2018-08-28 03:12:28 +02:00

37 lines
1.4 KiB
Go

package stdlib
// Generated by 'goexports sort'. Do not edit!
import (
"reflect"
"sort"
)
func init() {
Value["sort"] = map[string]reflect.Value{
"Float64s": reflect.ValueOf(sort.Float64s),
"Float64sAreSorted": reflect.ValueOf(sort.Float64sAreSorted),
"Ints": reflect.ValueOf(sort.Ints),
"IntsAreSorted": reflect.ValueOf(sort.IntsAreSorted),
"IsSorted": reflect.ValueOf(sort.IsSorted),
"Reverse": reflect.ValueOf(sort.Reverse),
"Search": reflect.ValueOf(sort.Search),
"SearchFloat64s": reflect.ValueOf(sort.SearchFloat64s),
"SearchInts": reflect.ValueOf(sort.SearchInts),
"SearchStrings": reflect.ValueOf(sort.SearchStrings),
"Slice": reflect.ValueOf(sort.Slice),
"SliceIsSorted": reflect.ValueOf(sort.SliceIsSorted),
"SliceStable": reflect.ValueOf(sort.SliceStable),
"Sort": reflect.ValueOf(sort.Sort),
"Stable": reflect.ValueOf(sort.Stable),
"Strings": reflect.ValueOf(sort.Strings),
"StringsAreSorted": reflect.ValueOf(sort.StringsAreSorted),
}
Type["sort"] = map[string]reflect.Type{
"Float64Slice": reflect.TypeOf((*sort.Float64Slice)(nil)).Elem(),
"IntSlice": reflect.TypeOf((*sort.IntSlice)(nil)).Elem(),
"Interface": reflect.TypeOf((*sort.Interface)(nil)).Elem(),
"StringSlice": reflect.TypeOf((*sort.StringSlice)(nil)).Elem(),
}
}