diff --git a/internal/storage/parse.go b/internal/storage/parse.go new file mode 100644 index 0000000..0745a72 --- /dev/null +++ b/internal/storage/parse.go @@ -0,0 +1,21 @@ +package storage + +const ( + DBTYPE_MEM = iota + DBTYPE_GDBM + DBTYPE_POSTGRES +) + +type connData struct { + typ int + str string +} + +func toConnData(s string) connData { + var o connData + + if s == "" { + return o + } + return o +}