diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-05-07 13:17:18 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-05-07 13:18:44 -0600 |
commit | a10a604018d0cb07babfe218d9fb2e00e1c8ae3b (patch) | |
tree | 8d701b7350baee5fd619dfa35d1ac31a82fc2ce9 /srv/src/cfg/mediocre_blog.go | |
parent | c99b37c5b37d8944522eb73288581ca99670b660 (diff) |
Refactor how data dir is initialized
Diffstat (limited to 'srv/src/cfg/mediocre_blog.go')
-rw-r--r-- | srv/src/cfg/mediocre_blog.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/srv/src/cfg/mediocre_blog.go b/srv/src/cfg/mediocre_blog.go new file mode 100644 index 0000000..98fe08c --- /dev/null +++ b/srv/src/cfg/mediocre_blog.go @@ -0,0 +1,9 @@ +package cfg + +// this file contains functionality specific to the mediocre blog. + +// NewBlogCfg returns a Cfg specifically configured for mediocre blog processes. +func NewBlogCfg(params Params) *Cfg { + params.EnvPrefix = "MEDIOCRE_BLOG" + return New(params) +} |