Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR ELIXIR

elixir alias __module__

defmodule User.Authentication do
  defstruct [:key, :token]
  alias __MODULE__, as: Auth
  .....
end

%Auth{key: "key", token: ".."}
 
PREVIOUS NEXT
Tagged: #elixir #alias
ADD COMMENT
Topic
Name
5+1 =