Is it nice to have 2 modules in a package?

Suppose I have a package MyTest,

MyTest/src/MyTest.jl
MyTest/src/A.jl

A.jl:
    module A ... end

MyTest.jl
    module MyTest
    using A
    ...
    end

When I downloaded the package from Pkg.clone("..")and using MyTest, he complained that he could not find A. What is the standard way to work with multiple modules in a package? Or does Julia encourage one top-level module?

+4
source share
1 answer

For a good example of a package with many internal modules, see Debugging Package .

+2
source

Source: https://habr.com/ru/post/1624840/


All Articles