Goal
Goal is a set of tools for high productivity web development in Go language.
Goal, being mostly inspired by Revel Framework and its discussions, is built around the concept of controllers and actions. However, as opposed to Revel and other high level frameworks Goal does not use runtime reflection and does not require your app to import monolithic dependencies.
Instead Goal is implemented in a form of independent tools that may be used with go generate
. That allows us to achieve type safety, minimalism of dependencies, compatability with the standard library, and productivity for the end-developers. At the same time Goal is very customizable (you can bring your own router, template system, and any other component). But that's without prejudice to the easiness and seamless of experience thanks to good defaults.
Getting Started
-
Install Goal:
go get -u github.com/goaltools/goal
-
Create a new skeleton application:
goal new github.com/$username/$project
-
Start a watcher / task runner:
goal run github.com/$username/$project
Documentation
- goaltools.github.io
- Introduction
goal new
- generate skeleton applicationgoal run
- start watcher / task runnergoal generate handlers
- generate HTTP handler functions- Actions
- Controllers
- Routes - a slice of routes and handler functions associated with them
goal generate listing
-generate a list of file paths(deprecated)
All goal generate *
tools may be used with go generate
.
Status
Proof of Concept: not ready for use in the wild. Working on: splitting the project into independent repos.
License
Distributed under the BSD 2-clause "Simplified" License unless otherwise noted.