介绍
http模块
使用方法
go
import (
"github.com/wallace5303/ee-go/ehttp"
)API列表
仅做简单介绍。按照go标准,常量/函数/方法等说明信息,都在源码中。
常量
PlatformPC = "pc"
PlatformBrowser = "browser"
PlatformPhone = "phone"
PlatformPad = "pad"
Conf map[string]anyCreateServer(cfg map[string]any)
创建http服务,ee-go使用。
GetPlatform(ctx *gin.Context) string
获取当前平台
IsPortOpen(port string) bool
端口是否打开
