Popularity
3.7
Stable
Activity
0.0
Stable
83
4
7

Programming language: Go
License: MIT License
Tags: Web Frameworks    
Latest version: v0.0.1

vox alternatives and similar packages

Based on the "Web Frameworks" category.
Alternatively, view vox alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of vox or a related project?

Add another 'Web Frameworks' Package

README

VOX

GoDoc Build Status Codecov Go Report Card Maintainability Gitter chat Awesome

A golang web framework for humans, inspired by Koa heavily.

VoxLogo

Getting started

Installation

Using the go get power:

$ go get -u github.com/aisk/vox

Basic Web Application

package main

import (
    "fmt"
    "time"

    "github.com/aisk/vox"
)

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

    // custom middleware that add a x-response-time to the response header
    app.Use(func(ctx *vox.Context, req *vox.Request, res *vox.Response) {
        start := time.Now()
        ctx.Next()
        duration := time.Now().Sub(start)
        res.Header.Set("X-Response-Time", fmt.Sprintf("%s", duration))
    })

    // router param
    app.Get("/hello/{name}", func(ctx *vox.Context, req *vox.Request, res *vox.Response) {
        res.Body = "Hello, " + req.Params["name"] + "!"
    })

    app.Run("localhost:3000")
}

More Docs

https://aisk.github.io/vox/

Need Support?

If you need help for using vox, or have other questions, welcome to our gitter chat room.

About the Project

Vox is © 2016-2020 by aisk.

License

Vox is distributed by a MIT license.


*Note that all licence references and agreements mentioned in the vox README section above are relevant to that project's source code only.