/gowiki

godoc "Writing Web Applications" tutorial

Primary LanguageGo

gowiki

Follows "Writing Web Applications" tutorial.

Table of Contents

  • Data Structures
  • Introducing the net/http package
  • Using net/http to serve wiki pages
  • Editing Pages
  • The html/template package
  • Handling non-existent pages
  • Saving Pages
  • Error handling
  • Template caching
  • Validation
  • Introducing Function Literals and Closures

Structure

.
├── README.md
├── edit.html
├── view.html
└── wiki.go

Files ending in .html are templates, wiki.go contains main logic for the Wiki.