Skip to content

stevela/twister

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twister

Twister is a lightweight and modular framework for building web applications in the Go programming language. Twister includes the following features:

  • Simple model for middleware using composition.
  • Routing to handlers using regular expression match on host and path.
  • Cross site request forgery protection.
  • Application specified error pages.
  • Cookie parsing.
  • Static file handling.
  • Signed values for cookies and form parameters.
  • WebSockets.
  • Multipart forms.
  • Built-in HTTP server.
  • OAuth 1.0 client
  • and more...

Twister works great with templating engines and database drivers written for Go.

Installation

Twister requires a working Go development environment. The Getting Started document describes how to install the development environment. Once you have Go up and running, you can install Twister with a single command:

goinstall github.com/garyburd/twister/server

The Go distribution is Twister's only dependency.

Documentation

  • web - Defines the application interface to a server and includes functionality used by most web applications.
  • server - An HTTP server impelemented in Go.
  • oauth - OAuth client.
  • websocket - WebSocket server implementation.
  • expvar - Exports variables as JSON over HTTP for monitoring.
  • pprof - Exports profiling data for the pprof tool.
  • gae - Support for running Twister on Google App Engine.

Examples

  • wiki - The Go web application example converted to use Twister instead of the Go http package.
  • demo - Illustrates basic features of Twister.
  • twitter - Login to Twitter with OAuth and display home timeline.
  • facebook - Login to Facebook with OAuth2 and display news feed.

License

Twister is available under the Apache License, Version 2.0.

Discussion

Discussion related to the use and development of Twister is held at the Twister Users group.

You can also contact the author through Github.

About

Twister was written by Gary Burd. The name "Twister" was inspired by Tornado.

About

Twister is a lightweight framework for writing web applications in Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%