Documentation ¶
Overview ¶
Copyright 2015 mint.zhao.chiu@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"): you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2015 mint.zhao.chiu@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"): you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func Contains(element interface{}, target interface{}) bool
- func Delete(element interface{}, slice interface{}) bool
- func Float64CompareFunctionASC(e1, e2 interface{}) int8
- func Float64CompareFunctionDESC(e1, e2 interface{}) int8
- func Index(element interface{}, target interface{}) int
- func Int64CompareFunctionASC(e1, e2 interface{}) int8
- func Int64CompareFunctionDESC(e1, e2 interface{}) int8
- func IntCompareFunctionASC(e1, e2 interface{}) int8
- func IntCompareFunctionDESC(e1, e2 interface{}) int8
- func StringCompareFunction(e1, e2 interface{}) int8
- func Uint64CompareFunctionASC(e1, e2 interface{}) int8
- func Uint64CompareFunctionDESC(e1, e2 interface{}) int8
- func ValidElements(elements ...interface{}) bool
- type CompareFunction
- type ContainerInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64CompareFunctionASC ¶
func Float64CompareFunctionASC(e1, e2 interface{}) int8
func Float64CompareFunctionDESC ¶
func Float64CompareFunctionDESC(e1, e2 interface{}) int8
func Int64CompareFunctionASC ¶
func Int64CompareFunctionASC(e1, e2 interface{}) int8
func Int64CompareFunctionDESC ¶
func Int64CompareFunctionDESC(e1, e2 interface{}) int8
func IntCompareFunctionASC ¶
func IntCompareFunctionASC(e1, e2 interface{}) int8
func IntCompareFunctionDESC ¶
func IntCompareFunctionDESC(e1, e2 interface{}) int8
func StringCompareFunction ¶
func StringCompareFunction(e1, e2 interface{}) int8
func Uint64CompareFunctionASC ¶
func Uint64CompareFunctionASC(e1, e2 interface{}) int8
func Uint64CompareFunctionDESC ¶
func Uint64CompareFunctionDESC(e1, e2 interface{}) int8
func ValidElements ¶
func ValidElements(elements ...interface{}) bool
Types ¶
type CompareFunction ¶
type CompareFunction func(interface{}, interface{}) int8
compareFunc的结果值:
小于0: 第一个参数小于第二个参数 等于0: 第一个参数等于第二个参数 大于1: 第一个参数大于第二个参数