Skip to content

Instantly share code, notes, and snippets.

@rugyoga
Created September 5, 2022 02:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rugyoga/7d677708be18a8ce637b73e7a693990b to your computer and use it in GitHub Desktop.
Save rugyoga/7d677708be18a8ce637b73e7a693990b to your computer and use it in GitHub Desktop.
@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