container

package module
v0.0.0-...-cc5dc36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

README

container

container扩展了Go语言的容器库

Build Status Go Walker

Features

  • hashset
  • order map
  • array list

Installation

安装container使用"go get"命令

go get github.com/aiwuTech/container

Update

更新container使用"go get -u"命令

go get -u github.com/aiwuTech/container

API

请参考Go Walker

FAQ

如果使用过程中遇到任何问题,希望主动与aiwuTech团队联系,也可提交Issues,我们会及时解决

THANKS

container参考了很多gods的设计,特别感谢!

License

container基于 Apache License, Version 2.0.

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(element interface{}, target interface{}) bool

func Delete

func Delete(element interface{}, slice interface{}) bool

func Float64CompareFunctionASC

func Float64CompareFunctionASC(e1, e2 interface{}) int8

func Float64CompareFunctionDESC

func Float64CompareFunctionDESC(e1, e2 interface{}) int8

func Index

func Index(element interface{}, target interface{}) int

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: 第一个参数大于第二个参数

type ContainerInterface

type ContainerInterface interface {
	Empty() bool
	Len() int
	Contains(elements ...interface{}) bool
	Clear()
	Elements() []interface{}
	String() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL