Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.39 KB

README.org

File metadata and controls

43 lines (35 loc) · 1.39 KB

GuardGen

https://gitlab.com/muhifauzan/guard-gen/badges/master/build.svg https://inch-ci.org/github/muhifauzan/guard-gen.svg?branch=master https://img.shields.io/hexpm/v/guard_gen.svg?style=flat

GuardGen provides macro that can be used as guard test to generate type-checks.

Installation

Add GuardGen to your list of dependencies in mix.exs:

def deps do
  [{:guard_gen, "~> 0.1.0"}]
end

Then, update your dependencies.

$ mix deps.get

Usage

GuardGen provides macro that can be used as guard test to generates type-checks.

defmodule GuardTest do
  import GuardGen

  def test(arg) when is_valid(is_atom: arg) do
    arg
  end
end

List of supported type checks are listed in here.

For full documentation, please consult the online documentation.

Change Log

All changes are found in CHANGELOG

License

Information about license is found in LICENSE

Contributing

Guide to contributing is found in CONTRIBUTING