Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RobertDober/lab42_defkw
Functions with syntax for keyword arguments and defaults
https://github.com/RobertDober/lab42_defkw
Last synced: about 1 month ago
JSON representation
Functions with syntax for keyword arguments and defaults
- Host: GitHub
- URL: https://github.com/RobertDober/lab42_defkw
- Owner: RobertDober
- License: other
- Created: 2015-12-03T20:47:18.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-18T18:37:59.000Z (almost 9 years ago)
- Last Synced: 2024-10-13T17:49:00.055Z (2 months ago)
- Language: Elixir
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Macros to create functions with syntax based keyword parameters with default values. (Macros)
- fucking-awesome-elixir - kwfuns - Macros to create functions with syntax based keyword parameters with default values. (Macros)
- awesome-elixir - kwfuns - Macros to create functions with syntax based keyword parameters with default values. (Macros)
README
# Kwfuns
[![Build Status](https://travis-ci.org/RobertDober/lab42_defkw.svg)](https://travis-ci.org/RobertDober/lab42_defkw)
[![Hex.pm](https://img.shields.io/hexpm/v/kwfuns.svg?style=flat-square)](https://hex.pm/packages/kwfuns)
[![Inline docs](http://inch-ci.org/github/RobertDober/lab42_defkw.svg)](http://inch-ci.org/github/RobertDober/lab42_defkw)## Macros to create functions with syntax based keyword parameters with default values
### Usage
```elixir
defmodule MyModule do
use Kwfuns
# Now use the macros defkw or defkwp
...
end
```Detailed Documentation can be found [here](http://hexdocs.pm/kwfuns/Kwfuns.html)
### LICENSE
Same as Elixir, which is Apache 2.0, please refer to [LICENSE](LICENSE) for details.
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:
1. Add kwfuns to your list of dependencies in `mix.exs`:
def deps do
[{:kwfuns, "~> 0.0.1"}]
end2. Ensure kwfuns is started before your application:
def application do
[applications: [:kwfuns]]
end