[go: up one dir, main page]

Skip to content
/ ctp Public

cit 社区官方 http 框架

Notifications You must be signed in to change notification settings

mouuii/ctp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ctp Web Framework

Ctp is a web framework written in Go. Now , the purpose for this project is only to learn how to write a go http framework !

Example

func main() {
	engin := ctp.Default()
	engin.GET("foo", FooControllerHandler)
	server := &http.Server{
		Addr:    ":8000",
		Handler: engin,
	}
	server.ListenAndServe()

}

func FooControllerHandler(c *ctp.Context) {
	c.Json(200, "success")
}

About

cit 社区官方 http 框架

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages