Skip to content

The lightweight and powerful web framework using the new way for Go.Another go the way.

License

Notifications You must be signed in to change notification settings

go-the-way/anoweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anoweb

                                    _
                                   | |
 _____  ____    ___   _ _ _  _____ | |__
(____ ||  _ \  / _ \ | | | || ___ ||  _ \ 
/ ___ || | | || |_| || | | || ____|| |_) )
\_____||_| |_| \___/  \___/ |_____)|____/ 

::anoweb:: 

The lightweight and powerful web framework using the new way for Go. Another go the way.

{{ Version @VER }}

{{ Powered by go-the-way }}

{{ https://github.com/go-the-way/anoweb }}

CircleCI GitHub go.mod Go version codecov Go Report Card GoDoc Release Mentioned in Awesome Go

Overview

Features

  • Pure native, no third dependencies
  • Basic & Variables & Group router
  • REST-ful controllers
  • Binding & validation
  • Middleware supports
  • Session supports
  • Rich Response supports

Install

require github.com/go-the-way/anoweb latest

Quickstart

package main

import (
	"fmt"
	"io/ioutil"
	"net/http"
	"time"
	
	"github.com/go-the-way/anoweb"
	"github.com/go-the-way/anoweb/context"
)

func main() {
	go func() {
		time.AfterFunc(time.Second, func() {
			response, _ := http.Get("http://localhost:9494")
			resp, _ := ioutil.ReadAll(response.Body)
			fmt.Println(string(resp))
		})
	}()
	anoweb.Default.Get("/", func(ctx *context.Context) {
		ctx.Text("Hello world")
	}).Run()
}

Thanks

About

The lightweight and powerful web framework using the new way for Go.Another go the way.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages