# goserver **Repository Path**: next123/prometheus_custom_metrics ## Basic Information - **Project Name**: goserver - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-15 - **Last Updated**: 2025-01-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # goserver ### 1. 启动服务器 运行以下命令启动服务器: ```bash go run main.go ``` 服务器将监听在 `8080` 端口。 ### 2. 访问业务请求 - 正常请求:访问 `http://localhost:8080/` - 错误请求:访问 `http://localhost:8080/?error=true` 返回示例: ```json { "status": "success", "message": "Request processed. Duration: 2.01s" } ```