# Import struct from other module as a parameter

**URL:** <https://discourse.julialang.org/t/import-struct-from-other-module-as-a-parameter/56080>\
**Category:** New to Julia\
**Created:** [February 26, 2021, 11:12am UTC](https://discourse.julialang.org/t/import-struct-from-other-module-as-a-parameter/56080 "2021-02-26T11:12:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pbayer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pbayer/32/11675_2.png) [@pbayer](https://discourse.julialang.org/u/pbayer)\
**Post date:** [February 26, 2021, 11:39am UTC](https://discourse.julialang.org/t/import-struct-from-other-module-as-a-parameter/56080/2 "2021-02-26T11:39:50Z")

</div>

Maybe, this thread helps:

> [@Best practice for managing package hierarchy](https://discourse.julialang.org/t/best-practice-for-managing-package-hierarchy/55822):
>
> What’s the best practice for the management of a package and its modules? Please take a look at the following example. In this example, module A is a kind of a Base module, and module B is a corresponding module. Also, I’d like to make functions accessible as MyPackage.my\_func (without exporting my\_func like using Reexport). What should I do? src/MyPackage.jl module MyPackage # `include("A.jl"); using .A` does not make support `MyPackage.A`. end src/A.jl module A abstract type …

---

_[View the full topic](https://discourse.julialang.org/t/import-struct-from-other-module-as-a-parameter/56080)._
