Categorygithub.com/VarthanV/hyper
repositorypackage
1.0.1
Repository: https://github.com/varthanv/hyper.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

hyper

A toy web framework written in Go inspired by gin-gonic/gin

Installing

go get github.com/VarthanV/hyper

Getting Started

package main

import hyper "github.com/VarthanV/hyper/core"

func main() {
	h := hyper.New()
	h.GET("/ping", func(w *hyper.ResponseWriter, request *hyper.Request) {
		w.WriteString(200, "PONG")
	})

	h.ListenAndServe("localhost", "6060", `
                               
 _   ___   ______  _____ ____  
| | | \ \ / |  _ \| ____|  _ \ 
| |_| |\ V /| |_) |  _| | |_) |
|  _  | | | |  __/| |___|  _ < 
|_| |_| |_| |_|   |_____|_| \_\
                               
`)
}