# How to write a program as a Julia package?

**URL:** <https://discourse.julialang.org/t/how-to-write-a-program-as-a-julia-package/80574>\
**Category:** General Usage\
**Tags:** code-organization\
**Created:** [May 5, 2022, 9:48pm UTC](https://discourse.julialang.org/t/how-to-write-a-program-as-a-julia-package/80574 "2022-05-05T21:48:04Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Nathan\_Boyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathan_boyer/32/14825_2.png) [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Post date:** [May 6, 2022, 3:37pm UTC](https://discourse.julialang.org/t/how-to-write-a-program-as-a-julia-package/80574/13 "2022-05-06T15:37:02Z")

</div>

> [@lmiq](#):
>
> If so, that should be an input of a function of your package, not something to be executed or read during package loading.

Yeah, I messed that up as mkitti pointed out. Right now, I just have the `input` as constants at the top of the main file, but I want to transition to a TOML file that I would package with my code and have users edit. I am also keeping an eye on [Best way to specify a filename inside a function - New to Julia - JuliaLang](https://discourse.julialang.org/t/best-way-to-specify-a-filename-inside-a-function/80263) for other user input options.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-write-a-program-as-a-julia-package/80574)._
