Skip to content

GuardGen provides macro that can be used as guard test to generates type-checks. See main repository at GitLab https://gitlab.com/muhifauzan/guard-gen

License

Notifications You must be signed in to change notification settings

muhifauzan/guard-gen

Repository files navigation

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

About

GuardGen provides macro that can be used as guard test to generates type-checks. See main repository at GitLab https://gitlab.com/muhifauzan/guard-gen

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages