github.com/gogf/gf@v1.16.9/.example/net/ghttp/server/reload/admin.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/gogf/gf/frame/g"
     5  )
     6  
     7  func main() {
     8  	s := g.Server()
     9  	s.SetConfigWithMap(g.Map{"Graceful": true})
    10  	s.EnableAdmin()
    11  	s.SetPort(8199)
    12  	s.Run()
    13  }