Skip to content

Instantly share code, notes, and snippets.

@mvanzulli
Created August 15, 2022 13:40
Show Gist options
  • Save mvanzulli/97ee5a68350caba40764722c57cb60ad to your computer and use it in GitHub Desktop.
Save mvanzulli/97ee5a68350caba40764722c57cb60ad to your computer and use it in GitHub Desktop.
Export all from a julia module
for n in names(@__MODULE__; all = true)
if Base.isidentifier(n) && n ∉ (Symbol(@__MODULE__), :eval, :include)
@eval export $n
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment