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