Skip to content

Latest commit

 

History

History

go-wiki

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

go-wiki

basic code

Learning at https://golang.org/doc/articles/wiki/

must feature

  • login/logout (authentication)
    • using gorilla/session

todo to make better

  • Store templates in tmpl/ and page data in data/.
  • Add a handler to make the web root redirect to /view/FrontPage.
  • Spruce up the page templates by making them valid HTML and adding some CSS rules.
  • Implement inter-page linking by converting instances of [PageName] to PageName. (hint: you could use regexp.ReplaceAllFunc to do this)

todo to solve problem

  • don't use regrep
  • replace template engine

reference