projects
/
quanweb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor into a few files. Add web service JSON query support.
[quanweb.git]
/
main
/
config.go
diff --git a/main/config.go
b/main/config.go
new file mode 100644
(file)
index 0000000..
7aa8195
--- /dev/null
+++ b/
main/config.go
@@ -0,0
+1,10
@@
+package main
+
+type dbConfig struct {
+ user, pass, dbName string
+}
+
+func getConfig() dbConfig {
+ // TODO: use a real password, and load config info from a file
+ return dbConfig{user:"quanlib", pass:"quanlib", dbName:"quanlib"}
+}