glogcenter/glc/gweb/http/start_httpserver.go

14 lines
182 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package http
import "glc/gweb"
// 注册控制器启动web服务
func StartHttpServer(fnRegister func()) {
// 注册控制器
fnRegister()
// 启动web服务
gweb.Run()
}