single repository page ui, add spec handler to get repo

This commit is contained in:
FuXiaoHei 2014-03-13 13:14:43 +08:00
parent f65d8f9144
commit 37fae304d3
8 changed files with 39 additions and 30 deletions

View file

@ -20,19 +20,19 @@ import (
// Test that go1.1 tag above is included in builds. main.go refers to this definition.
const go11tag = true
const APP_VER = "0.0.5.0311"
const APP_VER = "0.0.5.0313"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}
func checkRunUser() bool {
user, err := user.Current()
u, err := user.Current()
if err != nil {
// TODO: log
return false
}
return user.Username == base.Cfg.MustValue("", "RUN_USER")
return u.Username == base.Cfg.MustValue("", "RUN_USER")
}
func main() {