# Restructuring code from modules to package

**URL:** <https://discourse.julialang.org/t/restructuring-code-from-modules-to-package/69819>\
**Category:** General Usage\
**Tags:** packages\
**Created:** [October 15, 2021, 11:45am UTC](https://discourse.julialang.org/t/restructuring-code-from-modules-to-package/69819 "2021-10-15T11:45:24Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![MA\_Laforge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ma_laforge/32/385_2.png) [@MA\_Laforge](https://discourse.julialang.org/u/MA_Laforge)\
**Post date:** [October 16, 2021, 3:38am UTC](https://discourse.julialang.org/t/restructuring-code-from-modules-to-package/69819/10 "2021-10-16T03:38:24Z")

</div>

Unfortunately, I don’t fully understand your issue, but I believe I can point you to some useful resources.

I recently wrote a high-level overview of modules & packages in an attempt to alleviate confusion:  
 → [Could we make first-class support for packages that are "just files" and not repositories? - #20 by MA\_Laforge](https://discourse.julialang.org/t/could-we-make-first-class-support-for-packages-that-are-just-files-and-not-repositories/36931/20)

Somewhat similar (but less well explained in my opinion - read this last - if at all):  
 → [How to add a folder path in your .jl script - #8 by MA\_Laforge](https://discourse.julialang.org/t/how-to-add-a-folder-path-in-your-jl-script/61901/8)

Creating your first package (incl. file organization)  
 → [How does the module system actually work? - #3 by MA\_Laforge](https://discourse.julialang.org/t/how-does-the-module-system-actually-work/53548/3)

Tips for include vs import/using  
 → [Proper way of organizing code into subpackages - #3 by MA\_Laforge](https://discourse.julialang.org/t/proper-way-of-organizing-code-into-subpackages/52835/3)

Tips for directory structure/`LOAD_PATH`  
 → [Proper way of organizing code into subpackages - #4 by MA\_Laforge](https://discourse.julialang.org/t/proper-way-of-organizing-code-into-subpackages/52835/4)

Link to more relevant threads:  
 → [Proper way of organizing code into subpackages - #5 by MA\_Laforge](https://discourse.julialang.org/t/proper-way-of-organizing-code-into-subpackages/52835/5)

---

_[View the full topic](https://discourse.julialang.org/t/restructuring-code-from-modules-to-package/69819)._
