3
0

Migrate storage path to options.StorageOpt struct

This commit is contained in:
Denis Arh 2019-07-31 15:20:09 +02:00
parent 8848d0ed94
commit 4bbc85e1b4

View File

@ -0,0 +1,17 @@
package options
type (
StorageOpt struct {
Path string `env:"STORAGE_PATH"`
}
)
func Storage(pfix string) (o *StorageOpt) {
o = &StorageOpt{
Path: "var/store",
}
fill(o, pfix)
return
}