chapati

command module
v0.0.0-...-bc78e33 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 7 Imported by: 0

README

chapati: a good friend of curry

MIT License GoTest codecov

Code generator for curried function

Usage

  1. Prepare source file
package example

func Add(i1, i2 int) int {
	return i1 + i2
}
  1. Run command below
$ chapati example/example.go
  1. Chapati generates new source code with curried function
// Code generated by chapati; DO NOT EDIT.

package example

func CurriedAdd(i1 int) func(int) int {
	return func(i2 int) int {
		return Add(i1, i2)
	}
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
interface

Jump to

Keyboard shortcuts

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