changshengliu312 / lgo

http service frame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lgo

http service frame golang cgi服务框架

Example

   package main
   
   import (
    "lgo"
   )
   
   func main() {
    lgo.Run(10168)
   }  
  package main
   
   import (
    "fmt"
    "lgo"
   )
   
   func init() {
    lgo.HandleFunc("/getLineDataAPI", getLineInfo)
  }
  
  func getLineInfo(ctx *lgo.Context) {
   fmt.Println("adLineInfo")
  }

About

http service frame


Languages

Language:Go 99.8%Language:Makefile 0.2%