I’m making my first package for Julia (text generator based on Markov chains) and I’d like it to export two modules: Markovify and Markovify.Tokenizer, so that both will be available to be used in the users code. How do I do this as a developer?
Currently I have simply two files with two modules, but only the module named Markovify (which is the same as the package name) seems to be exported.
The user would not be able to input using Markovify.Tokenizer before using Markovify first. If you wish to be able to load the Tokenizer package without first invoking Markovify, then it needs to be a separate package, so that the package manager recognizes it separately.
That doesn’t concern me, Markovify.Tokenizer will be used only when using Markovify anyway. Just to be sure; to be able to make this, I should do something like:
The package manager looks in the src directory for a file with the same name as the package, so file1.jl will not be found. You have to include the other files from the main module file to load them.