Hello World in HTML

This commit is contained in:
bel
2020-03-12 15:23:41 -06:00
parent 65655080dd
commit 6d39ef9aa2
3 changed files with 25 additions and 16 deletions

View File

@@ -16,6 +16,7 @@ var (
StoreAddr string
StoreUser string
StorePass string
Root string
)
func init() {
@@ -34,6 +35,7 @@ func Refresh() {
as.Append(args.STRING, "storeaddr", "storage address", "")
as.Append(args.STRING, "storeuser", "storage username", "")
as.Append(args.STRING, "storepass", "storage password", "")
as.Append(args.STRING, "root", "root for static files", "./public")
if err := as.Parse(); err != nil {
panic(err)
}
@@ -44,6 +46,7 @@ func Refresh() {
StoreAddr = as.Get("storeaddr").GetString()
StoreUser = as.Get("storeuser").GetString()
StorePass = as.Get("storepass").GetString()
Root = as.Get("root").GetString()
if db, err := storage.New(storage.TypeFromString(StoreType), StoreAddr, StoreUser, StorePass); err != nil {
panic(err)