goutil

package
v0.0.164 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: GPL-2.0, GPL-2.0 Imports: 2 Imported by: 0

README

goutil & itertools

wercker status

GoDoc

CoverageStatus

contains many generic utility functions and helpers:

  • Iterate
  • Filter
  • Each
  • Find
  • Map
  • Pair
  • Range
  • Zip
  • CallChain
  • GetSet
  • Unpack

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallChain

func CallChain(preverr error, functor interface{}, iargs ...interface{}) (responseInterfaceArray []interface{}, err error)

func CallChainP

func CallChainP(preverr error, responseInterfaceArray []interface{}, functor interface{}, iargs ...interface{}) (err error)

func Empty

func Empty() *unpackEmpty

func Unpack

func Unpack(packedValues []interface{}, unpackedPointers ...interface{}) (err error)

func UnpackArray

func UnpackArray(packedValues []interface{}, unpackedPointers []interface{}) (err error)

Types

type Chain

type Chain struct {
	Error error
}

func NewChain

func NewChain(err error) (chain *Chain)

func (*Chain) Call

func (s *Chain) Call(functor interface{}, iargs ...interface{}) (responseInterfaceArray []interface{}, err error)

func (*Chain) CallP

func (s *Chain) CallP(responseInterfaceArray []interface{}, functor interface{}, iargs ...interface{}) (err error)

func (*Chain) Returns

func (s *Chain) Returns(args ...interface{}) []interface{}

type GetSet

type GetSet struct{}

func (*GetSet) Get

func (s *GetSet) Get(i interface{}, n string) interface{}

func (*GetSet) Set

func (s *GetSet) Set(i interface{}, n string, val interface{})

type GetSetter

type GetSetter interface {
	Get(n string) interface{}
	Set(n string, val interface{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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