Skip to content

open-zhy/fn-pipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fn-pipe

CircleCI

Functions pipeline for golang projects

Basic Usage

    // create the pipeline
    p, err := NewPipeline(
    	func(a int) (int, int) { return a + 5, a - 5 }, // fn1
    	func(a int, b int) int { return a * b },        // fn2
    )
    
    // error checking
    if err != nil {
    	fmt.Fatalf("Error while creating pipeline -> %s", err)
    }
    
    // output the result which should be fn2(fn1(...args))
    err, res := p.ExecWith(0) // res = [-25]

Contributing

Please follow this link

About

Functions pipeline for golang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages