# How do I get a list of functions defined in a module?

**URL:** <https://discourse.julialang.org/t/how-do-i-get-a-list-of-functions-defined-in-a-module/22266>\
**Category:** New to Julia\
**Tags:** module\
**Created:** [March 24, 2019, 1:55am UTC](https://discourse.julialang.org/t/how-do-i-get-a-list-of-functions-defined-in-a-module/22266 "2019-03-24T01:55:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![longemen3000](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/longemen3000/32/7298_2.png) [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Post date:** [March 24, 2019, 2:04am UTC](https://discourse.julialang.org/t/how-do-i-get-a-list-of-functions-defined-in-a-module/22266/2 "2019-03-24T02:04:23Z")

</div>

I find this

```julia
names(x::Module; all::Bool = false, imported::Bool = false)

```

Get an array of the names exported by a `Module` , excluding deprecated names. If `all` is true, then the list also includes non-exported names defined in the module, deprecated names, and compiler-generated names. If `imported` is true, then names explicitly imported from other modules are also included.

As a special case, all names defined in `Main` are considered “exported”, since it is not idiomatic to explicitly export names from `Main` .

[source](https://docs.julialang.org/en/v1/base/base/#Base.names)

---

_[View the full topic](https://discourse.julialang.org/t/how-do-i-get-a-list-of-functions-defined-in-a-module/22266)._
