func init() { var err error privateSignedKey, err = ioutil.ReadFile(path.Join(caller.Path(), privateKeyFile)) if err != nil { panic(err) } publicVerifyKey, err = ioutil.ReadFile(path.Join(caller.Path(), publicKeyFile)) if err != nil { panic(err) } }
func init() { headCache = cacheHtmlTmpl(path.Join(caller.Path(), "views/head.html")) bodyCache = cacheHtmlTmpl(path.Join(caller.Path(), "views/body.html")) layoutCache = cacheHtmlTmpl(path.Join(caller.Path(), "views/layout.html")) authenCache = cacheHtmlTmpl(path.Join(caller.Path(), "views/authen.html")) // Messenger templates errorCache = cacheHtmlTmpl(path.Join(caller.Path(), "views/errors.html")) infoCache = cacheHtmlTmpl(path.Join(caller.Path(), "views/infos.html")) }
func init() { editTmpl = path.Join(caller.Path(), "edit.html") }
func init() { vioTmpl = path.Join(caller.Path(), "violate.html") }
func init() { resetpwTmpl = path.Join(caller.Path(), "resetpw.html") }
func init() { welcomeTmpl = path.Join(caller.Path(), "welcome.html") }
func init() { signInTmpl = path.Join(caller.Path(), "signin.html") }
func init() { fmt.Println("Initialization.") db, _ = neoism.Connect(dbUri) dirtyNameFile = path.Join(caller.Path(), "dirty_name.txt") }
func init() { errorTmpl = path.Join(caller.Path(), "404.html") }
func init() { passwordTmpl = path.Join(caller.Path(), "password.html") }
func init() { signUpTmpl = path.Join(caller.Path(), "signup.html") }
func init() { expiredTmpl = path.Join(caller.Path(), "expired.html") }
func init() { // Path where all language ini files are stored folder = path.Join(caller.Path(), "files") }
func init() { viewTmpl = path.Join(caller.Path(), "view.html") }
func init() { forgotpwTmpl = path.Join(caller.Path(), "forgotpw.html") }