From a10a604018d0cb07babfe218d9fb2e00e1c8ae3b Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 7 May 2022 13:17:18 -0600 Subject: Refactor how data dir is initialized --- srv/src/cfg/mediocre_blog.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 srv/src/cfg/mediocre_blog.go (limited to 'srv/src/cfg/mediocre_blog.go') 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) +} -- cgit v1.2.3