Skip to content

Boofny/golive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoLive!

Fast web frame work for golang built on std lib http

Installation

Get started by downloading this module

Need Golang 1.25.1+

go get github.com/Boofny/goLive@latest

Simple Example

package main

import (
	"net/http"
	"github.com/Boofny/goLive"
	"github.com/Boofny/goLive/middleware"
)

func main() {
	e := goLive.Launch()

	e.Chain(middleware.CORS())

	e.GET("/ping", func(c *goLive.Context)error{
		return c.SendSTRING(http.StatusOK, "pong") //send out your data
	})

	e.StartServer(":8080")
}

Try it out!

In the terminal try.

curl -X GET localhost:8080/hello

Or in your browser

http://localhost:8080/hello

About

Simple and fast golang http framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages