# How to export \`Base:@kwdef\`?

**URL:** https://discourse.julialang.org/t/how-to-export-base-kwdef/67213
**Category:** Package Management
**Tags:** macros
**Created:** [August 28, 2021, 10:07am UTC](https://discourse.julialang.org/t/how-to-export-base-kwdef/67213 "2021-08-28T10:07:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![thisismygitrepo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thisismygitrepo/32/28593_2.png) [@thisismygitrepo](https://discourse.julialang.org/u/thisismygitrepo)
#### Post date: [August 28, 2021, 10:07am UTC](https://discourse.julialang.org/t/how-to-export-base-kwdef/67213/1 "2021-08-28T10:07:58Z")

</div>

I’m trying to export `Base:@kwdef` in a module that I am making via this line

```julia
using Base:@kwdef
export @kwdef

```

However, in the main module, it gets defined as var"@kwdef", how can I fix this?

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [August 30, 2021, 8:50am UTC](https://discourse.julialang.org/t/how-to-export-base-kwdef/67213/2 "2021-08-30T08:50:18Z")

</div>

```julia
module Foo
using Base:@kwdef
export @kwdef
end

```

works fine for me. Please provide an MWE.

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …
