This commit is contained in:
Liang Ding 2014-08-31 17:23:14 +08:00
parent 0a4250eb70
commit 355e64e680
2 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,6 @@ func GetFiles(w http.ResponseWriter, r *http.Request) {
username := session.Values["name"].(string) username := session.Values["name"].(string)
glog.Info(username)
userRepos := strings.Replace(conf.Wide.UserRepos, "{user}", username, -1) userRepos := strings.Replace(conf.Wide.UserRepos, "{user}", username, -1)
data := map[string]interface{}{"succ": true} data := map[string]interface{}{"succ": true}

View File

@ -65,6 +65,8 @@ func main() {
http.HandleFunc("/autocomplete", editor.AutocompleteHandler) http.HandleFunc("/autocomplete", editor.AutocompleteHandler)
glog.Infof("Wide is running [%s]", conf.Wide.Server)
err := http.ListenAndServe(conf.Wide.Server, nil) err := http.ListenAndServe(conf.Wide.Server, nil)
if err != nil { if err != nil {
glog.Fatal(err) glog.Fatal(err)