Skip to content

HeiBaiTu/fen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning and testing usage

package main

import (
  "net/http"

  "github.com/HeiBaiTu/fen"
)

func main() {
  r := fen.Default()
  r.GET("/", func(c *fen.Context) {
    c.JSON(http.StatusOK, fen.H{"message": "hello world"})
  })
  r.Run() 
}
2024/01/03 16:24:05 PORT is undefined. Using port :8080 by default
2024/01/03 16:24:05 Fen Listening and serving HTTP on :8080

About

Lean Gin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages