utron: github.com/gernest/utron Index | Files | Directories

package utron

import "github.com/gernest/utron"

Package utron is a lightweight MVC framework for building fast, scalable and robust web applications

Utron is built with focus of composability. This means, you can reap all the benefit of using utron while maintaining harmony with existing libraries and frameworks.

Core feaures of utron

* Session management

* Middleware support

* Data acess( Relational database)

* Logging

* Templates (views)

* Configuration

* Static content serving

Why utron

There are many frameworks out there, you might be wondering why do we need yet another framework?. We probably don't.. Utron is just a summary of the tools, and techniques I use to develop web applications in Go.

This includes the best libraries, and the best organization of the code base. Utron has one of the very handy Controller( you will see more details in the controller section)

These are the common libraries I use

* gorilla/mux: for http routing.

* gorilla/session: for session management

* gorm: for object relationl mapping.

In all of my web application I noticed that, keeping global state brings a lot of complexities to the application, so uttron avoids this. utron applicatio is a simple struct that you can play around with in whatever way that you find suits you.


Package Files

doc.go utron.go

func NewApp Uses

func NewApp() *app.App

NewApp creates a new bare-bone utron application. To use the MVC components, you should call the Init method before serving requests.

func NewMVC Uses

func NewMVC(cfg ...string) (*app.App, error)

NewMVC creates a new MVC utron app. If cfg is passed, it should be a directory to look for the configuration files. The App returned is initialized.


basePackage base is the basic building cblock of utron.

Package utron imports 1 packages (graph) and is imported by 15 packages. Updated 2018-10-30. Refresh now. Tools for package owners.