Skip to content

Instantly share code, notes, and snippets.

@rugyoga
Created September 5, 2022 02:54
@spec audit_fun(struct(), Macro.Env.t()) :: struct()
def audit_fun(r, e) do
r |> struct([{@key, payload(r, e)}])
end
@spec payload(struct(), Macro.Env) :: trail_t()
def payload(r, e), do: {r, e.file, e.line}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment