Example #1
0
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)
	}

}
Example #2
0
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"))

}
Example #3
0
func init() {
	editTmpl = path.Join(caller.Path(), "edit.html")
}
Example #4
0
func init() {
	vioTmpl = path.Join(caller.Path(), "violate.html")
}
Example #5
0
func init() {
	resetpwTmpl = path.Join(caller.Path(), "resetpw.html")
}
Example #6
0
func init() {
	welcomeTmpl = path.Join(caller.Path(), "welcome.html")
}
Example #7
0
func init() {
	signInTmpl = path.Join(caller.Path(), "signin.html")
}
Example #8
0
func init() {
	fmt.Println("Initialization.")
	db, _ = neoism.Connect(dbUri)

	dirtyNameFile = path.Join(caller.Path(), "dirty_name.txt")
}
Example #9
0
func init() {
	errorTmpl = path.Join(caller.Path(), "404.html")
}
Example #10
0
func init() {
	passwordTmpl = path.Join(caller.Path(), "password.html")
}
Example #11
0
func init() {
	signUpTmpl = path.Join(caller.Path(), "signup.html")
}
Example #12
0
func init() {
	expiredTmpl = path.Join(caller.Path(), "expired.html")
}
Example #13
0
func init() {
	// Path where all language ini files are stored
	folder = path.Join(caller.Path(), "files")
}
Example #14
0
func init() {
	viewTmpl = path.Join(caller.Path(), "view.html")
}
Example #15
0
func init() {
	forgotpwTmpl = path.Join(caller.Path(), "forgotpw.html")
}