https://github.com/RobertDober/lab42_defkw
Functions with syntax for keyword arguments and defaults
https://github.com/RobertDober/lab42_defkw
Last synced: 22 days 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-18T18:37:59.000Z (over 9 years ago)
- Last Synced: 2025-03-22T07:35:00.774Z (30 days ago)
- Language: Elixir
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- 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
[](https://travis-ci.org/RobertDober/lab42_defkw)
[](https://hex.pm/packages/kwfuns)
[](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