golib

package module
v0.0.0-...-28dfe99 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: MIT Imports: 2 Imported by: 0

README

golib Build Status Coverage Status Go Report Card GoDoc

Collection library of a useful go functions and data types

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parallel

func Parallel(n int, fn func())

Parallel ...

Types

type Cache

type Cache interface {
	Get(int64) interface{}
	Put(int64, interface{}) bool
	Reset()
}

Cache ...

func NewCache

func NewCache(size int) Cache

NewCache ...

type Set

type Set interface {
	Add(items ...interface{})
	Remove(items ...interface{})
	Pop() interface{}
	Has(items ...interface{}) bool
	Size() int
	Clear()
	Each(f func(interface{}) bool)
	List() []interface{}
}

func NewSet

func NewSet(items ...interface{}) Set

Jump to

Keyboard shortcuts

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