Here is what I do in FourVectors.jl
# Access the list of function names
const ALL_GETTER_FUNCTIONS = vcat(
collect(LorentzVectorBase.FOURMOMENTUM_GETTER_FUNCTIONS),
collect(keys(LorentzVectorBase.FOURMOMENTUM_GETTER_ALIASSES)),
)
# Loop over each function name and import and export it
for func_sym in ALL_GETTER_FUNCTIONS
# Import the function from LorentzVectorBase
@eval import LorentzVectorBase: $(func_sym)
# Export the function from this module
@eval export $(func_sym)
end
Here is what I do in
FourVectors.jl