/go-application

Golang Application runner micro-framework

Primary LanguageGoMIT LicenseMIT

Go Application Last release Documentation

Go Report Card

Branch Status Coverage
master Build Status Coveralls

go-application is a HTTP micro-framework library for Go.

Example

package main

import (
    "github.com/euskadi31/go-application"
    "github.com/euskadi31/go-application/provider"
)

func main() {
    app := application.New()

    app.Register(provider.NewEventDispatcherServiceProvider())
    app.Register(provider.NewHTTPServiceProvider())

    defer func() {
        if err := app.Close(); err != nil {
            panic(err)
        }
    }()

    if err := app.Run(); err != nil {
        panic(err)
    }
}

License

go-application is licensed under the MIT license.