Example #1
0
func main() {
	flag.Parse()
	dirPath := *flag.String("dir", ugo.GopathSrcGithub("metaleap", "go-leansite", "helloworld"), "Root directory path containing the static, contents, templates etc. folders.")
	leansite.Init(dirPath)
	log.Println("Listening any moment now...")
	log.Fatal(leansite.ListenAndServe(":8008"))
}
Example #2
0
func init() {
	leansite.Init("")
	http.Handle("/", leansite.Router)
}