Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompareAble ¶
type CompareAble interface {
/*
进行大小的比较
-1 <= compareAble
0 == compareAble
1 >= compareAble
*/
CompareTo(compareAble CompareAble) int
}
表示结构体是可比较的
type CompareFunc ¶
type CompareFunc func(thisValue interface{}, compareValue interface{}) int
常用比较函数定义
type ForIntIterator ¶
for循环 int 类型迭代器
type IndexError ¶
type IndexError struct {
}
索引异常
func (IndexError) Error ¶
func (i IndexError) Error() string
type Integer ¶
type Integer int
func (Integer) CompareTo ¶
func (integer Integer) CompareTo(compareAble CompareAble) int
Integer 是可比较的
type IteratorAble ¶
type OperatorNotUseful ¶
type OperatorNotUseful struct {
}
操作得不到预期结果异常
func (OperatorNotUseful) Error ¶
func (i OperatorNotUseful) Error() string
Click to show internal directories.
Click to hide internal directories.