lambda

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

README

go-lambda

Process data like functional programming

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	// contains filtered or unexported fields
}

func New

func New(obj interface{}) *Object

func (*Object) Array added in v0.2.0

func (r *Object) Array(f func(idx int, obj interface{}) interface{}) *Object

func (*Object) ArrayAsync added in v0.2.0

func (r *Object) ArrayAsync(f func(idx int, obj interface{}) interface{}) *Object

func (*Object) ArrayAsyncWithErr added in v0.3.0

func (r *Object) ArrayAsyncWithErr(f func(idx int, obj interface{}) (interface{}, error)) *Object

func (*Object) Error

func (r *Object) Error() error

func (*Object) Filter

func (r *Object) Filter(f func(idx int, obj interface{}) bool) *Object

func (*Object) Flatten added in v0.4.0

func (r *Object) Flatten() *Object

func (*Object) Join

func (r *Object) Join(sep string) (string, error)

func (*Object) Obj

func (r *Object) Obj() (interface{}, error)

func (*Object) SetErr

func (r *Object) SetErr(err error) *Object

func (*Object) String

func (r *Object) String() (res string, err error)

func (*Object) StringList

func (r *Object) StringList() (res []string, err error)

func (*Object) ToList

func (r *Object) ToList(resp interface{}) (err error)

func (*Object) Transfer

func (r *Object) Transfer(f func(obj interface{}) interface{}) *Object

Jump to

Keyboard shortcuts

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