https://github.com/vfsoraki/constants
An Elixir library to help you define constants easily
https://github.com/vfsoraki/constants
constants elixir library
Last synced: 10 months ago
JSON representation
An Elixir library to help you define constants easily
- Host: GitHub
- URL: https://github.com/vfsoraki/constants
- Owner: vfsoraki
- Created: 2017-05-06T19:27:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-06T19:42:29.000Z (over 8 years ago)
- Last Synced: 2025-02-28T10:26:11.662Z (11 months ago)
- Topics: constants, elixir, library
- Language: Elixir
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Constants
A library to help you define constants easily.
# Usage
```elixir
defmodule Test do
use Constants
@name :aconst
@value "a value"
@name "anotherone"
@value "another value"
end
Test.aconst # => "a value"
Test.anotherone # => "another value"
```
## Installation
The package can be installed adding `constants` to your list of dependencies
in `mix.exs`:
```elixir
def deps do
[{:constants, "~> 0.1.0"}]
end
```